edu.illinois.cs.cogcomp.lbj.coref.features
Class NameFeatures

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.features.NameFeatures

public class NameFeatures
extends java.lang.Object

Collection of feature generators and tools for computing properties of names.


Constructor Summary
protected NameFeatures()
          Should not need to construct this static feature library.
 
Method Summary
static java.lang.String doFirstNamesMatch(CExample ex, boolean useHead)
          Determines whether the first names match.
static java.lang.String doHonoraryTitlesMatch(CExample ex, boolean useHead)
          Determines whether the Honorary Titles (like Mr or Mrs) match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameFeatures

protected NameFeatures()
Should not need to construct this static feature library.

Method Detail

doFirstNamesMatch

public static java.lang.String doFirstNamesMatch(CExample ex,
                                                 boolean useHead)
Determines whether the first names match. Match is case-insensitive.

Parameters:
ex - The example whose mentions will be compared.
Returns:
"t" (true: they match), "f" (false: they don't match), or "u" (unknown: first names not found).

doHonoraryTitlesMatch

public static java.lang.String doHonoraryTitlesMatch(CExample ex,
                                                     boolean useHead)
Determines whether the Honorary Titles (like Mr or Mrs) match. Assumes that if any honorary title occurs, it is the first word of the head.

Parameters:
ex - The example whose mentions will be compared.
Returns:
"t" (true: they match), "f" (false: they don't match), or "u" (unknown: honorary titles not found).