public class LSTMBreakEngine extends DictionaryBreakEngine
| Modifier and Type | Class and Description |
|---|---|
static class |
LSTMBreakEngine.EmbeddingType |
static class |
LSTMBreakEngine.LSTMClass |
static class |
LSTMBreakEngine.LSTMData |
DictionaryBreakEngine.DequeI| Constructor and Description |
|---|
LSTMBreakEngine(int script,
UnicodeSet set,
LSTMBreakEngine.LSTMData data) |
| Modifier and Type | Method and Description |
|---|---|
static LSTMBreakEngine |
create(int script,
LSTMBreakEngine.LSTMData data) |
static LSTMBreakEngine.LSTMData |
createData(int script) |
static LSTMBreakEngine.LSTMData |
createData(UResourceBundle bundle) |
int |
divideUpDictionaryRange(CharacterIterator fIter,
int rangeStart,
int rangeEnd,
DictionaryBreakEngine.DequeI foundBreaks,
boolean isPhraseBreaking)
Divide up a range of known dictionary characters handled by this break engine.
|
boolean |
handles(int c) |
int |
hashCode() |
findBreakspublic LSTMBreakEngine(int script,
UnicodeSet set,
LSTMBreakEngine.LSTMData data)
public boolean handles(int c)
handles in interface LanguageBreakEnginehandles in class DictionaryBreakEnginec - A Unicode codepoint valuepublic int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking)
DictionaryBreakEngineDivide up a range of known dictionary characters handled by this break engine.
fIter - A UText representing the textrangeStart - The start of the range of dictionary charactersrangeEnd - The end of the range of dictionary charactersfoundBreaks - Output of break positions. Positions are pushed.
Pre-existing contents of the output stack are unaltered.public static LSTMBreakEngine.LSTMData createData(UResourceBundle bundle)
public static LSTMBreakEngine.LSTMData createData(int script)
public static LSTMBreakEngine create(int script, LSTMBreakEngine.LSTMData data)