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

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

public class LearnedFeatures
extends java.lang.Object

A collection of features based on classifiers learned from data.


Field Summary
private static java.lang.String introClassifierName
           
private static LBJ2.learn.Learner m_introCF
           
private static LBJ2.learn.Learner m_preNamesClassifier
           
private static java.lang.String preNamesClassifierName
           
 
Constructor Summary
LearnedFeatures()
           
 
Method Summary
protected static java.util.List<Mention> getPreMentionsOf(Mention m, MFilter filter)
          Returns a list of mentions appearing before the head of m.
static boolean prenominalModifierNamesCompatible(CExample ex)
          Determines whether all the proper name modifiers appearing before the heads of the two mentions are coreferential, as predicted by a learned classifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_preNamesClassifier

private static LBJ2.learn.Learner m_preNamesClassifier

m_introCF

private static LBJ2.learn.Learner m_introCF

preNamesClassifierName

private static java.lang.String preNamesClassifierName

introClassifierName

private static java.lang.String introClassifierName
Constructor Detail

LearnedFeatures

public LearnedFeatures()
Method Detail

prenominalModifierNamesCompatible

public static boolean prenominalModifierNamesCompatible(CExample ex)
Determines whether all the proper name modifiers appearing before the heads of the two mentions are coreferential, as predicted by a learned classifier. Loads and uses the LBJ2 Classifier edu.illinois.cs.cogcomp.lbj.coref.learned.EmnlpBasicCoref dynamically from the classpath.

Parameters:
ex - The example containing the mentions whose modifiers are being checked for coreference.
Returns:
Whether all pairs of modifiers are coreferential.
Throws:
java.lang.RuntimeException - if the learned classifier cannot be loaded.

getPreMentionsOf

protected static java.util.List<Mention> getPreMentionsOf(Mention m,
                                                          MFilter filter)
Returns a list of mentions appearing before the head of m.

Parameters:
m - The mention whose pre-mentions should be retrieved.
filter - A filter to be applied to the resulting mentions.
Returns:
Mentions appearing before the head of m and accepted by filter.