opennlp.tools.coref.mention
Class AbstractParse

java.lang.Object
  extended by opennlp.tools.coref.mention.AbstractParse
All Implemented Interfaces:
Comparable<Parse>, Parse
Direct Known Subclasses:
DefaultParse

public abstract class AbstractParse
extends Object
implements Parse

Provides default implemenation of many of the methods in the Parse interface.


Constructor Summary
AbstractParse()
           
 
Method Summary
 List<Parse> getNounPhrases()
          Returns a list of the all noun phrases contained by this parse.
 boolean isCoordinatedNounPhrase()
          Specifies whether this parse is a coordinated noun phrase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface opennlp.tools.coref.mention.Parse
getChildren, getEntityId, getEntityType, getNamedEntities, getNextToken, getParent, getPreviousToken, getSentenceNumber, getSpan, getSyntacticChildren, getSyntacticType, getTokens, isNamedEntity, isNounPhrase, isParentNAC, isSentence, isToken, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AbstractParse

public AbstractParse()
Method Detail

isCoordinatedNounPhrase

public boolean isCoordinatedNounPhrase()
Description copied from interface: Parse
Specifies whether this parse is a coordinated noun phrase.

Specified by:
isCoordinatedNounPhrase in interface Parse
Returns:
True if this parse is a coordinated noun phrase; false otherwise.

getNounPhrases

public List<Parse> getNounPhrases()
Description copied from interface: Parse
Returns a list of the all noun phrases contained by this parse. The noun phrases in this list should also implement the Parse interface.

Specified by:
getNounPhrases in interface Parse
Returns:
a list of all the noun phrases contained by this parse.


Copyright © 2010. All Rights Reserved.