public class NamedEntityAnnotation extends TextPipeAnnotation
Modifier and Type | Field and Description |
---|---|
NamedEntity |
namedEntity
The Named Entity.
|
ArrayList<TokenAnnotation> |
tokensMatched
Tokens matched by this Named Entity
|
Constructor and Description |
---|
NamedEntityAnnotation() |
NamedEntityAnnotation(ArrayList<TokenAnnotation> tokensMatched,
NamedEntity namedEntity) |
Modifier and Type | Method and Description |
---|---|
void |
addAllTokensMatched(Collection<TokenAnnotation> tokens)
Set the
TokenAnnotation s matched by this
NamedEntityAnnotation |
int |
getEnd()
Get the end char the matching substring for this Named Entity.
|
int |
getStart()
Get the start char the matching substring for this Named Entity.
|
addAllAnnotations, addAnnotation, getAnnotationKeyList, getAnnotationsFor
public ArrayList<TokenAnnotation> tokensMatched
public NamedEntity namedEntity
public NamedEntityAnnotation()
public NamedEntityAnnotation(ArrayList<TokenAnnotation> tokensMatched, NamedEntity namedEntity)
public int getStart()
public int getEnd()
public void addAllTokensMatched(Collection<TokenAnnotation> tokens)
TokenAnnotation
s matched by this
NamedEntityAnnotation
tokens
-