|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.coref.mention.AbstractParse opennlp.tools.coref.mention.DefaultParse
public class DefaultParse
This class is a wrapper for Parse
mapping it to the API specified in Parse
.
This allows coreference to be done on the output of the parser.
Field Summary | |
---|---|
static String[] |
NAME_TYPES
|
Constructor Summary | |
---|---|
DefaultParse(Parse parse,
int sentenceNumber)
Initializes the current instance. |
Method Summary | |
---|---|
int |
compareTo(Parse p)
|
boolean |
equals(Object o)
|
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. |
Parse |
getParent()
Returns the parent parse of this parse node. |
Parse |
getParse()
Retrieves the Parse . |
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. |
int |
hashCode()
|
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 class opennlp.tools.coref.mention.AbstractParse |
---|
getNounPhrases, isCoordinatedNounPhrase |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String[] NAME_TYPES
Constructor Detail |
---|
public DefaultParse(Parse parse, int sentenceNumber)
parse
- sentenceNumber
- Method Detail |
---|
public int getSentenceNumber()
Parse
public List<Parse> getNamedEntities()
Parse
Parse
interface.
public List<Parse> getChildren()
Parse
Parse
interface.
public List<Parse> getSyntacticChildren()
Parse
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.
public List<Parse> getTokens()
Parse
Parse
interface.
public String getSyntacticType()
Parse
public String getEntityType()
Parse
public boolean isParentNAC()
Parse
public Parse getParent()
Parse
public boolean isNamedEntity()
Parse
public boolean isNounPhrase()
Parse
public boolean isSentence()
Parse
public boolean isToken()
Parse
public int getEntityId()
Parse
public Span getSpan()
Parse
public int compareTo(Parse p)
public String toString()
toString
in interface Parse
toString
in class Object
public Parse getPreviousToken()
Parse
public Parse getNextToken()
Parse
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Parse getParse()
Parse
.
Parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |