edu.illinois.cs.cogcomp.lbj.coref.ir.examples
Class GExample

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.examples.Example
      extended by edu.illinois.cs.cogcomp.lbj.coref.ir.examples.GExample

public class GExample
extends Example

An example representing a mention and its gender, for use as the input to gender classifiers.

Author:
Eric Bengtson

Field Summary
private  java.lang.String m_text
           
private  java.lang.String m_val
           
 
Constructor Summary
GExample(Mention m)
          Constructs a gender example representing the head of the mention; subject to change.
GExample(java.lang.String line)
          Constructs a gender example from a line matching some text with a gender.
 
Method Summary
 java.lang.String getLabel()
          Gets the gender label.
 java.lang.String getText()
          Gets the text of the mention.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_text

private java.lang.String m_text

m_val

private java.lang.String m_val
Constructor Detail

GExample

public GExample(Mention m)
Constructs a gender example representing the head of the mention; subject to change.

Parameters:
m - The mention.

GExample

public GExample(java.lang.String line)
Constructs a gender example from a line matching some text with a gender. The line should be in the format "phrase == gender". Where gender is "m", "f", "u", or possibly "p" for person (depending on the classifier).

Parameters:
line - A line of text.
Method Detail

getText

public java.lang.String getText()
Gets the text of the mention.

Returns:
The text of the mention.

getLabel

public java.lang.String getLabel()
Gets the gender label.

Overrides:
getLabel in class Example
Returns:
The gender label, one of "m", "f", "u", or possibly "p" for person (depending on the classifier).