public class NamedEntityAnnotator extends Annotator
| Modifier and Type | Field and Description |
|---|---|
protected Encoder |
encoder |
protected ArticleIndex |
index |
protected static org.slf4j.Logger |
log |
protected MentionAnnotator |
ner |
components, it, provenance, tagger| Constructor and Description |
|---|
NamedEntityAnnotator(MentionAnnotator recognize,
ArticleIndex search) |
NamedEntityAnnotator(MentionAnnotator recognize,
ArticleIndex search,
Encoder disambiguate) |
| Modifier and Type | Method and Description |
|---|---|
void |
annotate(Collection<Document> docs) |
Document |
annotate(Document doc) |
Document |
annotate(String text) |
protected void |
createSignature(Document doc)
Attaches Vector to the Document
|
void |
disambiguateMentions(Document doc,
Annotation.Source source)
Attaches NamedEntityAnnotation to the Document
|
ArticleIndex |
getKnowlegeBase() |
protected void |
recognizeMentions(Document doc)
Attaches MentonAnnotations to the Document
|
addComponent, annotate, createDataset, createDocument, getComponent, getProvenance, getTagger, isModelAvailable, isModelAvailableInChildren, readModel, trainModel, writeComponents, writeHTML, writeModel, writeModel, writeTestLog, writeTrainLogprotected static final org.slf4j.Logger log
protected final MentionAnnotator ner
protected final ArticleIndex index
protected final Encoder encoder
public NamedEntityAnnotator(MentionAnnotator recognize, ArticleIndex search, Encoder disambiguate)
public NamedEntityAnnotator(MentionAnnotator recognize, ArticleIndex search)
public void annotate(Collection<Document> docs)
public ArticleIndex getKnowlegeBase()
protected void recognizeMentions(Document doc)
protected void createSignature(Document doc)
public void disambiguateMentions(Document doc, Annotation.Source source)
Copyright © 2020. All rights reserved.