|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.coref.mention.AbstractMentionFinder
public abstract class AbstractMentionFinder
Provides default implementation of many of the methods in the MentionFinder interface.
| Constructor Summary | |
|---|---|
AbstractMentionFinder()
|
|
| Method Summary | |
|---|---|
Mention[] |
getMentions(Parse p)
Returns an array of mentions. |
List<Parse> |
getNamedEntities(Parse p)
Return all noun phrases which are contained by p. |
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 b)
Specifies whether coordinated noun phrases should be collected as mentions. |
void |
setPrenominalNamedEntityCollection(boolean b)
Specifies whether pre-nominal named-entities should be collected as mentions. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMentionFinder()
| Method Detail |
|---|
public boolean isPrenominalNamedEntityCollection()
MentionFinder
isPrenominalNamedEntityCollection in interface MentionFinderpublic void setPrenominalNamedEntityCollection(boolean b)
MentionFinder
setPrenominalNamedEntityCollection in interface MentionFinderb - true if pre-nominal named-entities should be collected; false otherwise.public List<Parse> getNamedEntities(Parse p)
p.
p - The parse in which to find the noun phrases.
Parse objects which are noun phrases contained by p.public Mention[] getMentions(Parse p)
MentionFinder
getMentions in interface MentionFinderp - A top level parse from which mentions are gathered.
Extent interface.public boolean isCoordinatedNounPhraseCollection()
MentionFinder
isCoordinatedNounPhraseCollection in interface MentionFinderpublic void setCoordinatedNounPhraseCollection(boolean b)
MentionFinder
setCoordinatedNounPhraseCollection in interface MentionFinderb - true if coordinated noun phrases should be collected; false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||