public class TrieLinguisticAnnotator extends Object implements LinguisticAnnotator
Constructor and Description |
---|
TrieLinguisticAnnotator(EntityCandidatesTrie candidatesTrie) |
Modifier and Type | Method and Description |
---|---|
Set<Annotation> |
annotate(TextDocument document)
Generates annotation based on trie's longest matching strings.
|
void |
setNormalizeWords(boolean enabled)
Sets whether the document's contents should be normalized or not.
|
public TrieLinguisticAnnotator(EntityCandidatesTrie candidatesTrie)
public Set<Annotation> annotate(TextDocument document)
annotate
in interface LinguisticAnnotator
document
- the document to get annotations forpublic void setNormalizeWords(boolean enabled)
enabled
- if true normalizing is enabled, otherwise disabled DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann