org.jscience.ml.tigerxml.tools
Class IndexFeatures
java.lang.Object
org.jscience.ml.tigerxml.tools.IndexFeatures
public class IndexFeatures
- extends java.lang.Object
Identifies and compares the features of a GraphNode that are
relevant for anaphoric reference, for example person, gender, and number.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexFeatures
public IndexFeatures(GraphNode node)
IndexFeatures
public IndexFeatures(GraphNode node,
int verbosity)
isFirstPerson
public boolean isFirstPerson()
isSecondPerson
public boolean isSecondPerson()
isThirdPerson
public boolean isThirdPerson()
hasUndefinedPerson
public boolean hasUndefinedPerson()
isFeminine
public boolean isFeminine()
isMasculine
public boolean isMasculine()
isNeuter
public boolean isNeuter()
hasUndefinedGender
public boolean hasUndefinedGender()
isSingular
public boolean isSingular()
isPlural
public boolean isPlural()
hasUndefinedNumber
public boolean hasUndefinedNumber()
getGender
public java.lang.String getGender()
getNumber
public java.lang.String getNumber()
getPerson
public java.lang.String getPerson()
indexFeaturesMatch
public static final boolean indexFeaturesMatch(GraphNode node1,
GraphNode node2,
int verbosity)
- This static method returns true if the two GraphNodes
agree in their index features and are therefore
candidates for the coreference relation
Examples: "sie" and "die Frau",
"sie" und "die Kinder" and so forth.
- Parameters:
node1 - The first node to be matched against the index features.node2 - The second node to be matched against the index features.verbosity - The level of verbosity.
- Returns:
- True if the given GraphNodes agree in their index features.
indexFeaturesMatch
public static final boolean indexFeaturesMatch(GraphNode node1,
GraphNode node2)
- This static method returns true if the two GraphNodes
agree in their index features and are therefore
candidates for the coreference relation
Examples: "sie" and "die Frau",
"sie" und "die Kinder" and so forth.
- Parameters:
node1 - The first node to be matched against the index features.node2 - The second node to be matched against the index features.
- Returns:
- True if the given GraphNodes agree in their index features.