|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basistech.rlp.NamedEntityData
public class NamedEntityData
A bundle of information for a named entity.
Constructor Summary | |
---|---|
NamedEntityData()
Create a new NamedEntityData, with uninteresting, default, values. |
Method Summary | |
---|---|
int |
getEndCharacterOffset()
Gets the offset of the last character of the named entity. |
int |
getEndTokenIndex()
Gets the last token in the named entity. |
String |
getNormalizedNamedEntity()
Gets the normalized form of the named entity. |
int |
getPrefixLength()
If the named entity had a prefix that was removed from the normalized named entity, the length of that prefix in the original raw text. |
String |
getRawNamedEntity()
Gets the original text of the named entity. |
int |
getStartCharacterOffset()
Gets the index of the first character in the named entity. |
int |
getStartTokenIndex()
Gets the index of the first token of the entity. |
int |
getType()
Gets the type of the entity. |
void |
setEndCharacterOffset(int endCharacterOffset)
|
void |
setEndTokenIndex(int endTokenIndex)
|
void |
setNormalizedNamedEntity(String normalizedNamedEntity)
|
void |
setPrefixLength(int prefixLength)
If the named entity had a prefix that was removed from the normalized named entity, the length of that prefix in the original raw text. |
void |
setRawNamedEntity(String rawNamedEntity)
|
void |
setStartCharacterOffset(int startCharacterOffset)
|
void |
setStartTokenIndex(int startTokenIndex)
|
void |
setType(int type)
|
String |
toString()
Gets a string representation of this NamedEntityData object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedEntityData()
Method Detail |
---|
public String toString()
toString
in class Object
public int getEndCharacterOffset()
public int getEndTokenIndex()
public String getNormalizedNamedEntity()
public String getRawNamedEntity()
public int getStartCharacterOffset()
public int getStartTokenIndex()
public int getType()
public int getPrefixLength()
public void setPrefixLength(int prefixLength)
prefixLength
- the prefix length.public void setRawNamedEntity(String rawNamedEntity)
public void setNormalizedNamedEntity(String normalizedNamedEntity)
public void setType(int type)
public void setStartTokenIndex(int startTokenIndex)
public void setEndTokenIndex(int endTokenIndex)
public void setStartCharacterOffset(int startCharacterOffset)
public void setEndCharacterOffset(int endCharacterOffset)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |