|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.CoreferenceSet
Class to implement coreference sets (also known as lines of identity). Note that it is necessary to add at least one valid dominant concept to this set before adding subordinate concepts that may belong to other coreference sets.
Constructor Summary | |
CoreferenceSet()
Constructs a new, empty coreference set. |
|
CoreferenceSet(java.lang.String newDefLabel)
Constructs a new, empty coreference set with the specified defining label. |
Method Summary | |
void |
addCoreferentConcept(Concept newConcept)
Adds a concept to this coreference set. |
Concept[] |
getCoreferentConcepts()
Returns all of the concepts in this coreference set. |
Concept |
getDefiningConcept()
Returns the defining concept associated with this coreference set or null if none was specified. |
java.lang.String |
getDefiningLabel()
Returns the defining label associated with this coreference set or null if none was specified. |
Concept[] |
getDominantConcepts()
Returns the dominant concepts in this coreference set. |
boolean |
getEnableScopeChecking()
Returns the current value of the flag which enables or disables scope checking (disabled by default) when modifying this coreference set. |
Concept[] |
getSubordinateConcepts()
Returns the subordinate concepts in this coreference set. |
boolean |
hasConcept(Concept concept)
Tests whether the specified concept is a member of this coref set whether dominant or subordinate. |
boolean |
hasDominantConcept(Concept concept)
Tests whether the specified concept is a dominant concept in this coreference set. |
boolean |
hasSubordinateConcept(Concept concept)
Tests whether the specified concept is a subordinate concept of this coref set. |
void |
removeConcepts(Concept[] deadConcepts)
Removes the specified concepts from this coreference set. |
void |
removeCoreferentConcept(Concept deadConcept)
Removes the specified concept from this coreference set. |
void |
setDefiningConcept(Concept newDefConcept)
Sets the defining concept associated with this coreference set. |
void |
setDefiningLabel(java.lang.String newDefLabel)
Sets the defining label associated with this coreference set. |
void |
setEnableScopeChecking(boolean flag)
Sets a flag which enables or disables scope checking (enabled by default) when modifying this coreference set. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public CoreferenceSet()
public CoreferenceSet(java.lang.String newDefLabel)
newDefLabel
- the defining label for this coreference set.Method Detail |
public void setDefiningLabel(java.lang.String newDefLabel)
newDefLabel
- the defining label to be associated with this coreference set.public void setDefiningConcept(Concept newDefConcept) throws InvalidDefiningConceptException
newDefConcept
- the defining concept to be associated with this coreference set.public java.lang.String getDefiningLabel()
public Concept getDefiningConcept()
public void addCoreferentConcept(Concept newConcept) throws CorefAddException
newConcept
- the concept to be added to this coref set.public void removeCoreferentConcept(Concept deadConcept) throws CorefRemoveException
deadConcept
- the concept to be removed from this coref set.public void removeConcepts(Concept[] deadConcepts) throws CorefRemoveException
deadConcepts
- the array of concepts to be removed from this coref set.public boolean hasConcept(Concept concept)
concept
- the concept being tested.public boolean hasDominantConcept(Concept concept)
concept
- the concept being tested to see if it a dominant concept in this set.public boolean hasSubordinateConcept(Concept concept)
concept
- the concept being tested.public Concept[] getCoreferentConcepts()
public Concept[] getDominantConcepts()
public Concept[] getSubordinateConcepts()
public void setEnableScopeChecking(boolean flag) throws CorefAddException, InvalidDefiningConceptException
flag
- the new setting for the scope checking flag.public boolean getEnableScopeChecking()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |