Class AutoTranscriber
java.lang.Object
ca.phon.autotranscribe.AutoTranscriber
Create automatic IPA transcriptions for a given orthography
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new auto transcriber with no sources and default transcriberAutoTranscriber(Transcriber transcriber) AutoTranscriber(List<AutoTranscribeSource> sources) Create a new auto transcriber for the given orthography and sourcesAutoTranscriber(List<AutoTranscribeSource> sources, Transcriber transcriber) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSource(AutoTranscribeSource source) Add a new source for transcriptionsvoidLookup a single wordvoidremoveSource(AutoTranscribeSource source) Remove a source for transcriptionsvoidsetIpaComparator(Comparator<IPATranscript> comparator) voidsetSources(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()Create a new auto transcriber with no sources and default transcriber -
AutoTranscriber
-
AutoTranscriber
Create a new auto transcriber for the given orthography and sources- Parameters:
sources-
-
AutoTranscriber
-
-
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.
-