org.jscience.ml.tigerxml.tools
Class IndexFeatures

java.lang.Object
  extended by 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.


Constructor Summary
IndexFeatures(GraphNode node)
           
IndexFeatures(GraphNode node, int verbosity)
           
 
Method Summary
 java.lang.String getGender()
           
 java.lang.String getNumber()
           
 java.lang.String getPerson()
           
 boolean hasUndefinedGender()
           
 boolean hasUndefinedNumber()
           
 boolean hasUndefinedPerson()
           
static 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.

static 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.

 boolean isFeminine()
           
 boolean isFirstPerson()
           
 boolean isMasculine()
           
 boolean isNeuter()
           
 boolean isPlural()
           
 boolean isSecondPerson()
           
 boolean isSingular()
           
 boolean isThirdPerson()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexFeatures

public IndexFeatures(GraphNode node)

IndexFeatures

public IndexFeatures(GraphNode node,
                     int verbosity)
Method Detail

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.