public interface Parse extends Comparable<Parse>
Modifier and Type | Method and Description |
---|---|
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() |
compareTo
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()
int getEntityId()
Span getSpan()
Parse getPreviousToken()
Parse getNextToken()
Copyright © 2019 The Apache Software Foundation. All rights reserved.