Class AutoTranscriber
java.lang.Object
ca.phon.autotranscribe.AutoTranscriber
Create automatic IPA transcriptions for a given orthography
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAutoTranscriber
(List<AutoTranscribeSource> sources) Create a new auto transcriber for the given orthography and sources -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSource
(AutoTranscribeSource source) Add a new source for transcriptionsvoid
Lookup a single wordvoid
removeSource
(AutoTranscribeSource source) Remove a source for transcriptionsvoid
setIpaComparator
(Comparator<IPATranscript> comparator) void
setSources
(List<AutoTranscribeSource> sources) transcribe
(Orthography orthography) Transcribe the given orthographytranscribe
(Orthography orthography, int fromWord) Transcribe the given orthography starting at the given wordtranscribe
(Orthography orthography, int fromWord, int toWord) Transcribe the given orthographytranscribe
(String text) Transcribe the given orthographytranscribe
(String text, int fromWord)
-
Constructor Details
-
AutoTranscriber
public AutoTranscriber() -
AutoTranscriber
Create a new auto transcriber for the given orthography and sources- Parameters:
sources
-
-
-
Method Details
-
getSources
-
setIpaComparator
-
getIpaComparator
-
addSource
Add a new source for transcriptions- Parameters:
source
-
-
removeSource
Remove a source for transcriptions- Parameters:
source
-
-
clearSources
public void clearSources() -
setSources
-
transcribe
Transcribe the given orthography- Parameters:
text
-- Returns:
- automatic transcription
- Throws:
ParseException
-
transcribe
Transcribe the given orthography- Parameters:
orthography
-- Returns:
- automatic transcription
-
transcribe
- Throws:
ParseException
-
transcribe
Transcribe the given orthography starting at the given word- Parameters:
orthography
-fromWord
-- Returns:
-
transcribe
Transcribe the given orthography- Parameters:
orthography
- orthographyfromWord
- start wordtoWord
- end word, -1 to transcribe to end- Returns:
- automatic transcription
-
lookup
Lookup a single word- Parameters:
word
-- Returns:
- list of transcriptions Word word) {
final List
retVfrom all sources ordered by the IPA comparator. If no transcriptions are available, a list with a single '*' is returned.
-