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

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

public class Case
extends java.lang.Object

Features related to case.


Constructor Summary
protected Case()
          Construction of this static feature library should not be necessary.
 
Method Summary
static java.lang.String getCasedWord(Doc d, int wordNum, LBJ2.classify.Classifier caser)
          Given a word in a document, returns that word in the case that caser predicts it should be.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Case

protected Case()
Construction of this static feature library should not be necessary.

Method Detail

getCasedWord

public static java.lang.String getCasedWord(Doc d,
                                            int wordNum,
                                            LBJ2.classify.Classifier caser)
Given a word in a document, returns that word in the case that caser predicts it should be.

Parameters:
d - A document giving the context for the word.
wordNum - The position in the document of the word in question.
caser - A classifier that takes a CaseExample returns "allUpper", "firstCap", or "other".
Returns:
The specified word in the appropriate case.