opennlp.tools.coref.mention
Interface MentionFinder

All Known Implementing Classes:
AbstractMentionFinder, PTBMentionFinder, ShallowParseMentionFinder

public interface MentionFinder

Specifies the interface that Objects which determine the space of mentions for coreference should implement.


Method Summary
 Mention[] getMentions(Parse parse)
          Returns an array of mentions.
 boolean isCoordinatedNounPhraseCollection()
          Returns whether this mention finder collects coordinated noun phrases as mentions.
 boolean isPrenominalNamedEntityCollection()
          Returns whether this mention finder collects pre-nominal named-entities as mentions.
 void setCoordinatedNounPhraseCollection(boolean collectCoordinatedNounPhrases)
          Specifies whether coordinated noun phrases should be collected as mentions.
 void setPrenominalNamedEntityCollection(boolean collectPrenominalNamedEntities)
          Specifies whether pre-nominal named-entities should be collected as mentions.
 

Method Detail

setPrenominalNamedEntityCollection

void setPrenominalNamedEntityCollection(boolean collectPrenominalNamedEntities)
Specifies whether pre-nominal named-entities should be collected as mentions.

Parameters:
collectPrenominalNamedEntities - true if pre-nominal named-entities should be collected; false otherwise.

isPrenominalNamedEntityCollection

boolean isPrenominalNamedEntityCollection()
Returns whether this mention finder collects pre-nominal named-entities as mentions.

Returns:
true if this mention finder collects pre-nominal named-entities as mentions

isCoordinatedNounPhraseCollection

boolean isCoordinatedNounPhraseCollection()
Returns whether this mention finder collects coordinated noun phrases as mentions.

Returns:
true if this mention finder collects coordinated noun phrases as mentions; false otherwise.

setCoordinatedNounPhraseCollection

void setCoordinatedNounPhraseCollection(boolean collectCoordinatedNounPhrases)
Specifies whether coordinated noun phrases should be collected as mentions.

Parameters:
collectCoordinatedNounPhrases - true if coordinated noun phrases should be collected; false otherwise.

getMentions

Mention[] getMentions(Parse parse)
Returns an array of mentions.

Parameters:
parse - A top level parse from which mentions are gathered.
Returns:
an array of mentions which implement the Extent interface.


Copyright © 2010. All Rights Reserved.