|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parse
Interface for syntactic and named-entity information to be used in coreference annotation.
Method Summary | |
---|---|
List<Parse> |
getChildren()
Returns a list of the children to this object. |
int |
getEntityId()
Returns an entity id associated with this parse and coreferent parses. |
String |
getEntityType()
Returns the named-entity type of this node. |
List<Parse> |
getNamedEntities()
Returns a list of all the named entities contained by this parse. |
Parse |
getNextToken()
Returns the next token which is not a child of this parse. |
List<Parse> |
getNounPhrases()
Returns a list of the all noun phrases contained by this parse. |
Parse |
getParent()
Returns the parent parse of this parse node. |
Parse |
getPreviousToken()
Returns the first token which is not a child of this parse. |
int |
getSentenceNumber()
Returns the index of the sentence which contains this parse. |
Span |
getSpan()
Returns the character offsets of this parse node. |
List<Parse> |
getSyntacticChildren()
Returns a list of the children to this object which are constituents or tokens. |
String |
getSyntacticType()
Returns the syntactic type of this node. |
List<Parse> |
getTokens()
Returns a list of the tokens contained by this object. |
boolean |
isCoordinatedNounPhrase()
Specifies whether this parse is a coordinated noun phrase. |
boolean |
isNamedEntity()
Specifies whether this parse is a named-entity. |
boolean |
isNounPhrase()
Specifies whether this parse is a noun phrase. |
boolean |
isParentNAC()
Determines whether this has an ancestor of type NAC. |
boolean |
isSentence()
Specifies whether this parse is a sentence. |
boolean |
isToken()
Specifies whether this parse is a token. |
String |
toString()
|
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
int getSentenceNumber()
List<Parse> getNounPhrases()
Parse
interface.
List<Parse> getNamedEntities()
Parse
interface.
List<Parse> getChildren()
Parse
interface.
List<Parse> getSyntacticChildren()
Parse
interface. This allows
implementations which contain addition nodes for things such as semantic categories to
hide those nodes from the components which only care about syntactic nodes.
List<Parse> getTokens()
Parse
interface.
String getSyntacticType()
String getEntityType()
boolean isParentNAC()
Parse getParent()
boolean isNamedEntity()
boolean isNounPhrase()
boolean isSentence()
boolean isCoordinatedNounPhrase()
boolean isToken()
String toString()
toString
in class Object
int getEntityId()
Span getSpan()
Parse getPreviousToken()
Parse getNextToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |