|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.nerc.EntityDescriptor
public class EntityDescriptor
Represents a single named entity
| Constructor Summary | |
|---|---|
EntityDescriptor(Document document,
Annotation annotation)
Constructs a new entity descriptor starting from a Gate annotation |
|
EntityDescriptor(String string,
String category,
int start,
int end)
Constructs a new entity descriptor |
|
| Method Summary | |
|---|---|
String |
getCategory()
Returns the category of the entity |
int[] |
getOffsets()
Returns a pair of integers specifying the character offsets in the original file where the entity occured |
String |
getString()
Returns a normalised string for the entity. |
protected String |
normaliseString(String text)
Normalises a string. |
String |
toString()
Returns a string giving the category, offsets and normalised string for the entity, with no newlines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityDescriptor(String string,
String category,
int start,
int end)
public EntityDescriptor(Document document,
Annotation annotation)
| Method Detail |
|---|
public String getString()
public String getCategory()
public int[] getOffsets()
public String toString()
toString in class Objectprotected String normaliseString(String text)
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||