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
TokenAnnotations 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, getAnnotationsForpublic 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)
TokenAnnotations matched by this
NamedEntityAnnotationtokens -