com.basistech.rlp
Class NamedEntityData

java.lang.Object
  extended by com.basistech.rlp.NamedEntityData

public class NamedEntityData
extends Object

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

NamedEntityData

public NamedEntityData()
Create a new NamedEntityData, with uninteresting, default, values.

Method Detail

toString

public String toString()
Gets a string representation of this NamedEntityData object.

Overrides:
toString in class Object
Returns:
the string representation of this NamedEntityData object.

getEndCharacterOffset

public int getEndCharacterOffset()
Gets the offset of the last character of the named entity.

Returns:
one larger than the index in the RAW_TEXT result of the last character of the entity.

getEndTokenIndex

public int getEndTokenIndex()
Gets the last token in the named entity.

Returns:
one larger than the index of the last token of the entity.

getNormalizedNamedEntity

public String getNormalizedNamedEntity()
Gets the normalized form of the named entity. Normalization (if enabled) removes grammatical particles.

Returns:
the text of the named entity, normalized.

getRawNamedEntity

public String getRawNamedEntity()
Gets the original text of the named entity.

Returns:
the original text of the named entity.

getStartCharacterOffset

public int getStartCharacterOffset()
Gets the index of the first character in the named entity.

Returns:
the index in the RAW_TEXT result of the first character of the entity.

getStartTokenIndex

public int getStartTokenIndex()
Gets the index of the first token of the entity.

Returns:
the index of the first token of the entity.

getType

public int getType()
Gets the type of the entity.

Returns:
the type of the entity.

getPrefixLength

public 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.

Returns:
the prefix length.

setPrefixLength

public 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.

Parameters:
prefixLength - the prefix length.

setRawNamedEntity

public void setRawNamedEntity(String rawNamedEntity)

setNormalizedNamedEntity

public void setNormalizedNamedEntity(String normalizedNamedEntity)

setType

public void setType(int type)

setStartTokenIndex

public void setStartTokenIndex(int startTokenIndex)

setEndTokenIndex

public void setEndTokenIndex(int endTokenIndex)

setStartCharacterOffset

public void setStartCharacterOffset(int startCharacterOffset)

setEndCharacterOffset

public void setEndCharacterOffset(int endCharacterOffset)


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.