|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.Node | +--notio.Concept
The concept node class.
Constructor Summary | |
Concept()
Constructs a concept neither type nor referent. |
|
Concept(ConceptType newType)
Constructs a concept with the specified type and no referent. |
|
Concept(ConceptType newType,
Referent newReferent)
Constructs a concept with the specified type and referent. |
|
Concept(Referent newReferent)
Constructs a concept with the specified referent and no type. |
Method Summary | |
Concept |
copy(CopyingScheme copyScheme)
Performs a copy operation on this concept according to the the specified CopyingScheme. |
Concept |
copy(CopyingScheme copyScheme,
java.util.Hashtable substitutionTable)
Performs a copy operation on this concept according to the the specified CopyingScheme. |
CoreferenceSet[] |
getCoreferenceSets()
Returns the coreferences sets of which this concept is a member. |
Concept[] |
getCoreferentConcepts()
Returns all of the concepts coreferent to this concept. |
Referent |
getReferent()
Returns this concept's referent. |
Relation[] |
getRelators()
Returns an array (possibly empty) of the relations in the enclosing graph that relate this concept. |
ConceptType |
getType()
Returns this concept's type. |
boolean |
isContext()
Returns true if this concept is a context. |
boolean |
isDefiningConcept()
Returns true if this concept is the defining concept of a coreference set. |
boolean |
isDominantConcept()
Returns true if this concept is a dominant node of a coreference set. |
boolean |
isEnclosedBy(Concept concept)
Returns true if this concept is enclosed by the specified concept. |
boolean |
isEnclosedBy(Graph graph)
Returns true if this concept is enclosed by the specified graph. |
boolean |
isGeneric()
Returns true if this concept is generic; false if the concept is specific. |
void |
isolate()
Isolates this concept by removing it from all coreference sets to which it belongs and by isolating any and all concepts that may be nested within it. |
static MatchResult |
matchConcepts(Concept first,
Concept second,
MatchingScheme matchingScheme)
Compares two concepts to decide if they match. |
Concept |
restrictTo(ConceptType subType)
Returns a new concept identical to this but restricted to the new type. |
Concept |
restrictTo(ConceptType subType,
Referent newReferent)
Returns a new concept identical to this but restricted to the given referent and subtype. |
Concept |
restrictTo(Referent newReferent)
Returns a new concept identical to this but restricted to the given referent. |
void |
setReferent(Referent newReferent)
Sets this concept's referent. |
void |
setType(ConceptType newType)
Sets this concept's type. |
static boolean |
testCoreference(Concept first,
Concept second)
Returns true if the two concepts specified are coreferent. |
Methods inherited from class notio.Node |
getComment,
getEnclosingGraph,
setComment |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Concept(ConceptType newType, Referent newReferent)
newType
- the concept type for this concept.newReferent
- the referent for this concept.public Concept(ConceptType newType)
newType
- the concept type for this concept.public Concept(Referent newReferent)
newReferent
- the referent for this concept.public Concept()
Method Detail |
public ConceptType getType()
public Referent getReferent()
public void setType(ConceptType newType)
newType
- the new type for this concept.public void setReferent(Referent newReferent)
newReferent
- the new referent for this concept.public CoreferenceSet[] getCoreferenceSets()
public Concept[] getCoreferentConcepts()
public boolean isDominantConcept()
public boolean isDefiningConcept()
public boolean isEnclosedBy(Concept concept)
concept
- the concept being checked for as enclosing this concept.public boolean isEnclosedBy(Graph graph)
graph
- the graph being checked for as enclosing this concept.public void isolate() throws CorefRemoveException
public Relation[] getRelators()
public Concept copy(CopyingScheme copyScheme)
copyScheme
- the copying scheme used to control the copy operation.public Concept copy(CopyingScheme copyScheme, java.util.Hashtable substitutionTable)
copyScheme
- the copying scheme used to control the copy operation.substitutionTable
- a hashtable containing copied objects available due to
earlier copy operations.public Concept restrictTo(ConceptType subType) throws RestrictionException
subType
- the type to be restricted to.public Concept restrictTo(Referent newReferent) throws RestrictionException
newReferent
- the referent to be restricted to.public Concept restrictTo(ConceptType subType, Referent newReferent) throws RestrictionException
subType
- the type to be restricted to.newReferent
- the referent to be restricted to.public boolean isContext()
Referent.isContext()
public boolean isGeneric()
public static boolean testCoreference(Concept first, Concept second)
first
- the first concept.second
- the second concept.public static MatchResult matchConcepts(Concept first, Concept second, MatchingScheme matchingScheme)
first
- the first concept being matched.second
- the second concept being matched.matchingScheme
- the matching scheme that determines how the match is performed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |