public class FSADictionary extends Object implements opennlp.tools.postag.TagDictionary, LemmaDictionary, Iterable<String>
| Modifier and Type | Method and Description |
|---|---|
static opennlp.tools.postag.TagDictionary |
create(byte[] dictData,
byte[] dictInfo) |
static FSADictionary |
create(InputStream fsaData,
InputStream featuresData) |
static opennlp.tools.postag.TagDictionary |
create(String path) |
static FSADictionary |
createFromResources(String path) |
static byte[] |
getFSADictionaryData(String path) |
static byte[] |
getFSADictionaryInfo(String path) |
String[] |
getLemmas(String word,
String tag) |
String[] |
getTags(String word) |
List<PairWordPOSTag> |
getTagsAndLemms(String aWord)
This is used by rule system
|
Iterator<String> |
iterator() |
static void |
main(String[] args) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic String[] getTags(String word)
getTags in interface opennlp.tools.postag.TagDictionarypublic String[] getLemmas(String word, String tag)
getLemmas in interface LemmaDictionarypublic List<PairWordPOSTag> getTagsAndLemms(String aWord)
public static opennlp.tools.postag.TagDictionary create(String path) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static byte[] getFSADictionaryInfo(String path) throws IOException
IOExceptionpublic static byte[] getFSADictionaryData(String path) throws IOException
IOExceptionpublic static FSADictionary create(InputStream fsaData, InputStream featuresData) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static opennlp.tools.postag.TagDictionary create(byte[] dictData,
byte[] dictInfo)
throws IllegalArgumentException,
IOException
IllegalArgumentExceptionIOExceptionpublic static FSADictionary createFromResources(String path) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionpublic static void main(String[] args) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionCopyright © 2012–2017 CoGrOO. All rights reserved.