Class Tagger
- java.lang.Object
-
- io.github.crew102.rapidrake.opennlpUtils.Tagger
-
public class Tagger extends Object
A wrapper around opennlp.tools.postag.POSTaggerME.
-
-
Constructor Summary
Constructors Constructor Description Tagger(InputStream taggerStream)
Constructor.Tagger(String taggerModelUrl)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description opennlp.tools.postag.POSTaggerME
getPosTagger()
Get the POS tagger.
-
-
-
Constructor Detail
-
Tagger
public Tagger(String taggerModelUrl)
Constructor.- Parameters:
taggerModelUrl
- the URL of a POS tagging model
-
Tagger
public Tagger(InputStream taggerStream)
Constructor.- Parameters:
taggerStream
- the input stream of the POS tagging model
-
-
Method Detail
-
getPosTagger
public opennlp.tools.postag.POSTaggerME getPosTagger() throws IOException
Get the POS tagger.- Returns:
- a
opennlp.tools.postag.POSTaggerME
- Throws:
IOException
- ifinputString
ortaggerStream
is invalid
-
-