|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.llnl.ontology.text.tag.OpenNlpMEPOSTagger
public class OpenNlpMEPOSTagger
A wrapper around the POSTaggerME POSTagger so that it can be
loaded with a no argument constructor using a predefined model.
| Field Summary | |
|---|---|
static String |
DEFAULT_MODEL
|
| Constructor Summary | |
|---|---|
OpenNlpMEPOSTagger()
Loads the model configuration from DEFAULT_MODEL |
|
OpenNlpMEPOSTagger(String modelPath,
boolean loadFromJar)
Loads a POSTaggerME model from modelPath. |
|
| Method Summary | |
|---|---|
List<String> |
tag(List<String> sentence)
Deprecated. |
String |
tag(String sentence)
Deprecated. |
String[] |
tag(String[] sentence)
|
opennlp.tools.util.Sequence[] |
topKSequences(List<String> sentence)
Deprecated. |
opennlp.tools.util.Sequence[] |
topKSequences(String[] sentence)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_MODEL
| Constructor Detail |
|---|
public OpenNlpMEPOSTagger()
DEFAULT_MODEL
public OpenNlpMEPOSTagger(String modelPath,
boolean loadFromJar)
POSTaggerME model from modelPath. If loadFromJar is true, the binary file will be found from within the
running class path.
| Method Detail |
|---|
@Deprecated public List<String> tag(List<String> sentence)
tag in interface opennlp.tools.postag.POSTagger@Deprecated public String tag(String sentence)
tag in interface opennlp.tools.postag.POSTaggerpublic String[] tag(String[] sentence)
tag in interface opennlp.tools.postag.POSTagger@Deprecated public opennlp.tools.util.Sequence[] topKSequences(List<String> sentence)
topKSequences in interface opennlp.tools.postag.POSTaggerpublic opennlp.tools.util.Sequence[] topKSequences(String[] sentence)
topKSequences in interface opennlp.tools.postag.POSTagger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||