public class FSAFeatureDictionary extends Object implements FeatureDictionary, Iterable<WordTag>
| Constructor and Description |
|---|
FSAFeatureDictionary(morfologik.stemming.DictionaryLookup dictLookup) |
| Modifier and Type | Method and Description |
|---|---|
static FeatureDictionary |
create(byte[] dictData,
byte[] dictInfo) |
static FeatureDictionary |
create(InputStream fsaData,
InputStream featuresData) |
static FeatureDictionary |
create(String path) |
static FeatureDictionary |
createFromResources(String path) |
String[] |
getFeatures(String word,
String pos) |
static byte[] |
getFSADictionaryData(String path) |
static byte[] |
getFSADictionaryInfo(String path) |
Iterator<WordTag> |
iterator() |
static void |
main(String[] args) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FSAFeatureDictionary(morfologik.stemming.DictionaryLookup dictLookup)
public String[] getFeatures(String word, String pos)
getFeatures in interface FeatureDictionarypublic static FeatureDictionary create(String path) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static byte[] getFSADictionaryInfo(String path) throws IOException
IOExceptionpublic static byte[] getFSADictionaryData(String path) throws IOException
IOExceptionpublic static FeatureDictionary create(InputStream fsaData, InputStream featuresData) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static FeatureDictionary create(byte[] dictData, byte[] dictInfo) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static void main(String[] args) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static FeatureDictionary createFromResources(String path) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionCopyright © 2012–2017 CoGrOO. All rights reserved.