public class NamedEntityAnnotation extends Annotation
Annotation.Match, Annotation.Source| Modifier and Type | Field and Description |
|---|---|
protected List<ArticleRef> |
candidates |
protected String |
refId |
protected String |
refName |
protected String |
refUrl |
protected String |
type |
confidence, log, source, text| Constructor and Description |
|---|
NamedEntityAnnotation() |
NamedEntityAnnotation(Annotation.Source source,
String text,
int begin,
int length,
String type,
String annotationSource) |
NamedEntityAnnotation(MentionAnnotation ann,
List<ArticleRef> candidates) |
NamedEntityAnnotation(NamedEntityAnnotation ann,
List<ArticleRef> candidates) |
| Modifier and Type | Method and Description |
|---|---|
List<ArticleRef> |
getCandidates() |
String |
getRefId() |
String |
getRefName() |
String |
getRefUrl() |
String |
getType() |
boolean |
matches(Annotation other,
Annotation.Match match) |
void |
setCandidates(List<ArticleRef> candidates,
boolean setId) |
void |
setRefId(String id) |
void |
setRefName(String refName) |
void |
setRefUrl(String url) |
String |
toString() |
contains, equals, getConfidence, getSource, getText, hashCode, intersects, matches, setConfidence, setSource, setTextclearTags, clearVectors, clearVectors, clearVectors, compareTo, getBegin, getDocumentRef, getDocumentRefUid, getEnd, getLength, getTag, getUid, getVector, getVector, getVector, getVectorKeys, hasVector, hasVector, putTag, putVector, putVector, setBegin, setDocumentRef, setEnd, setLength, setUidprotected String type
protected String refName
protected String refId
protected String refUrl
protected List<ArticleRef> candidates
public NamedEntityAnnotation()
public NamedEntityAnnotation(Annotation.Source source, String text, int begin, int length, String type, String annotationSource)
public NamedEntityAnnotation(MentionAnnotation ann, List<ArticleRef> candidates)
public NamedEntityAnnotation(NamedEntityAnnotation ann, List<ArticleRef> candidates)
public String getRefName()
public void setRefName(String refName)
public String getRefId()
public void setRefId(String id)
public String getRefUrl()
public void setRefUrl(String url)
public void setCandidates(List<ArticleRef> candidates, boolean setId)
public String getType()
public List<ArticleRef> getCandidates()
public boolean matches(Annotation other, Annotation.Match match)
matches in class AnnotationCopyright © 2019. All rights reserved.