|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.coref.mention.AbstractMentionFinder
public abstract class AbstractMentionFinder
Provides default implementation of many of the methods in the MentionFinder
interface.
Field Summary | |
---|---|
protected boolean |
collectCoordinatedNounPhrases
|
protected boolean |
collectPrenominalNamedEntities
|
protected HeadFinder |
headFinder
|
Constructor Summary | |
---|---|
AbstractMentionFinder()
|
Method Summary | |
---|---|
protected Map<Parse,Parse> |
constructHeadMap(List<Parse> nps)
Assigns head relations between noun phrases and the child np which is their head. |
Mention[] |
getMentions(Parse p)
Returns an array of mentions. |
List<Parse> |
getNamedEntities(Parse p)
Return all noun phrases which are contained by p . |
protected boolean |
isBasalNounPhrase(Parse np)
|
protected boolean |
isConjoinedBasal(Parse np)
|
boolean |
isCoordinatedNounPhraseCollection()
Returns whether this mention finder collects coordinated noun phrases as mentions. |
protected boolean |
isOfPrepPhrase(Parse np)
|
protected boolean |
isPossessive(Parse np)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HeadFinder headFinder
protected boolean collectPrenominalNamedEntities
protected boolean collectCoordinatedNounPhrases
Constructor Detail |
---|
public AbstractMentionFinder()
Method Detail |
---|
protected Map<Parse,Parse> constructHeadMap(List<Parse> nps)
nps
- List of valid nps for this mention finder.
public boolean isPrenominalNamedEntityCollection()
MentionFinder
isPrenominalNamedEntityCollection
in interface MentionFinder
public void setPrenominalNamedEntityCollection(boolean b)
MentionFinder
setPrenominalNamedEntityCollection
in interface MentionFinder
b
- true if pre-nominal named-entities should be collected; false otherwise.protected boolean isBasalNounPhrase(Parse np)
protected boolean isPossessive(Parse np)
protected boolean isOfPrepPhrase(Parse np)
protected boolean isConjoinedBasal(Parse np)
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 MentionFinder
p
- A top level parse from which mentions are gathered.
Extent
interface.public boolean isCoordinatedNounPhraseCollection()
MentionFinder
isCoordinatedNounPhraseCollection
in interface MentionFinder
public void setCoordinatedNounPhraseCollection(boolean b)
MentionFinder
setCoordinatedNounPhraseCollection
in interface MentionFinder
b
- 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 |