public class GermanLexicon extends LexiconImpl
tokenizeOnLoad, tokenizeOnLookup
Constructor and Description |
---|
GermanLexicon()
Creates the default CMU Lexicon which is a binary lexicon
|
GermanLexicon(String basename)
Creates the CMU Lexicon which is a binary lexicon
|
GermanLexicon(String basename,
boolean useBinaryIO) |
GermanLexicon(URL compiledURL,
URL addendaURL,
URL letterToSoundURL,
boolean binary)
Creates a GermanLexicon based upon the given compiled and addenda
DBs and the given letter to sound rules
|
Modifier and Type | Method and Description |
---|---|
static GermanLexicon |
getInstance(boolean useBinaryIO)
Get the GermanLexicon.
|
static GermanLexicon |
getInstance(String basename,
boolean useBinaryIO)
Get the GermanLexicon.
|
boolean |
isSyllableBoundary(List syllablePhones,
String[] wordPhones,
int currentWordPhone)
Determines if the currentPhone represents a new syllable
boundary.
|
static void |
main(String[] args)
Provides test code for the GermanLexicon.
|
addAddendum, compare, createLexicon, dumpBinary, fixPartOfSpeech, getPhones, getPhones, getPhones, getPhones, getPhones, isLoaded, load, loadTextLexicon, parseAndAdd, removeAddendum, setLexiconParameters
public GermanLexicon(URL compiledURL, URL addendaURL, URL letterToSoundURL, boolean binary)
compiledURL
- the compiled database is loaded from hereaddendaURL
- the database addenda is loaded from hereletterToSoundURL
- the letter to sound rules are loaded
from herebinary
- if true
the input data are loaded as
binary ; otherwise if false
the input
data are loaded as text.public GermanLexicon()
public GermanLexicon(String basename)
basename
- the basename for the lexicon.public GermanLexicon(String basename, boolean useBinaryIO)
public static GermanLexicon getInstance(boolean useBinaryIO) throws IOException
useBinaryIO
- if true use binary IO to load DBIOException
- if problems occurred while reading the datapublic static GermanLexicon getInstance(String basename, boolean useBinaryIO) throws IOException
useBinaryIO
- if true use binary IO to load DBIOException
- if problems occurred while reading the datapublic boolean isSyllableBoundary(List syllablePhones, String[] wordPhones, int currentWordPhone)
syllablePhones
- the phones in the current syllable so farwordPhones
- the phones for the whole wordcurrentWordPhone
- the word phone in questiontrue
if the word phone in question is on a
syllable boundary; otherwise false
.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses