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

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.examples.IntroExample
All Implemented Interfaces:
java.io.Serializable

public class IntroExample
extends java.lang.Object
implements java.io.Serializable

An example to hold an Mention and knowledge of whether the example is the first mention of an entity in a document.

Author:
Eric Bengtson
See Also:
Serialized Form

Field Summary
protected  boolean m_firstMeaningful
           
protected  boolean m_isFirst
          Meaningless unless set
 Mention m_m
           
private static long serialVersionUID
           
 
Constructor Summary
IntroExample(Mention m)
          Constructs an IntroExample for use in determining whether a mention is the the first mention of an entity.
IntroExample(Mention m, boolean isFirst)
          Constructs an IntroExample for use in training.
 
Method Summary
 boolean isFirst()
          Gets the label, which indicates whether the example mention is the first mention of its entity.
 void setIsFirst(boolean isFirst)
          Sets the label, which indicates whether the example mention is the first mention of its entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_m

public Mention m_m

m_isFirst

protected boolean m_isFirst
Meaningless unless set


m_firstMeaningful

protected boolean m_firstMeaningful
Constructor Detail

IntroExample

public IntroExample(Mention m)
Constructs an IntroExample for use in determining whether a mention is the the first mention of an entity.

Parameters:
m - The mention

IntroExample

public IntroExample(Mention m,
                    boolean isFirst)
Constructs an IntroExample for use in training.

Parameters:
m - The mention
isFirst - The label, indicating whether a mention is the first mention of its entity.
Method Detail

isFirst

public boolean isFirst()
Gets the label, which indicates whether the example mention is the first mention of its entity.

Returns:
Whether the mention is the first mention of an entity.

setIsFirst

public void setIsFirst(boolean isFirst)
Sets the label, which indicates whether the example mention is the first mention of its entity.

Parameters:
isFirst - The label, indicating whether the example mention is the first mention of its entity.