public static final class RegexNerProcessor.NamedEntity extends Object implements Comparable<RegexNerProcessor.NamedEntity>
| Constructor and Description |
|---|
NamedEntity(int start,
int end,
NerTag tag) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RegexNerProcessor.NamedEntity o) |
double |
getConfidence() |
int |
getEnd() |
String |
getLemma() |
int |
getOffset() |
int |
getStart() |
NerTag |
getTag() |
void |
setConfidence(double confidnece) |
void |
setLemma(String lemma) |
protected void |
setOffset(int offset)
Setter for the offset to the start of the whole content.
|
String |
toString() |
public NamedEntity(int start,
int end,
NerTag tag)
protected final void setOffset(int offset)
RegexNamedEntityFactory
does set the offset to ensure that getStart() and
getEnd() are relative to the content as a wholeoffset - the offset of the analyzed section to the
content as a wholepublic int getOffset()
public int getStart()
public int getEnd()
public NerTag getTag()
public void setConfidence(double confidnece)
public double getConfidence()
public void setLemma(String lemma)
public String getLemma()
public int compareTo(RegexNerProcessor.NamedEntity o)
compareTo in interface Comparable<RegexNerProcessor.NamedEntity>Copyright © 2016–2017 Redlink GmbH. All rights reserved.