NCOpenNLPTokenEnricher
OpenNLP-based language independent token enricher. This
enricher adds lemma
and pos
(part-of-speech) string metadata property to the token
instance. Learn more about lemmas here and about part-of-speech
here.
This OpenNLP enricher requires PoS and lemma models. Some of free OpenNLP community-maintained models can be found here. Note that at least one of model must be defined.
- Value parameters:
- lemmaDicRes
Relative path, absolute path, classpath resource or URL to DictionaryLemmatizer model. Can be
null
if lemmatizer model is not configured, solemma
property will not be set. Note that at least one of the model must be provided.- posMdlRes
Relative path, absolute path, classpath resource or URL to POSTaggerME model. Can be
null
if part-of-speech model is not configured, sopos
property will not be set. Note that at least one of the model must be provided.
- Source:
- NCOpenNLPTokenEnricher.scala
Value members
Concrete methods
Enriches, or otherwise modifies, previously parsed tokens.
Enriches, or otherwise modifies, previously parsed tokens.
- Definition Classes
- Source:
- NCOpenNLPTokenEnricher.scala
Inherited methods
Called when the component starts. Default implementation is no-op.
Called when the component starts. Default implementation is no-op.
- Value parameters:
- cfg
Configuration of the model this component is associated with.
- Inherited from:
- NCLifecycle
- Source:
- NCLifecycle.scala
Called when the component stops. Default implementation is no-op.
Called when the component stops. Default implementation is no-op.
- Value parameters:
- cfg
Configuration of the model this component is associated with.
- Inherited from:
- NCLifecycle
- Source:
- NCLifecycle.scala