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

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

public class BIOExample
extends WordExample

An example of a word and information about where in a chunk it is located: beginning, inside, or outside a chunk.

Author:
Eric Bengtson

Field Summary
 char m_bio
          Whether this word 'b'egins, is 'i'nside, or is 'o'utside a (head) chunk.
 char m_bioE
          Whether this word 'b'egins, is 'i'nside, or is 'o'utside an extent chunk.
 char m_bracketE
          Whether a word 's'tarts or 'e'nds an extent, for use with bracket classifiers.
 java.lang.String m_predELabel
          A predicted label for the BIO status of the extent.
 java.lang.String m_predLabel
          A predicted label for the BIO status of the head.
 BIOExample m_prevEx
          The previous word's example.
static java.util.Set<java.lang.String> prevEntWords
          The words of the previous entities.
 
Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.examples.WordExample
m_doc, m_numWords, m_wordN
 
Constructor Summary
BIOExample(Doc doc, int wordN, char bioH, BIOExample prev)
          Constructs a BIO example for a given word with respect to its presence in a head.
BIOExample(Doc doc, int wordN, char bioH, char bioE, BIOExample prev)
          Constructs a BIO example for a given word with respect to its presence in a head and in an extent.
 
Method Summary
 
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.examples.WordExample
getCasedWord, getCasedWord, getDoc, getPOS, getPOS, getWord, getWord, getWordCase, getWordCase, getWordCase, getWordNum
 
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.examples.Example
getLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_prevEx

public BIOExample m_prevEx
The previous word's example.


m_bio

public char m_bio
Whether this word 'b'egins, is 'i'nside, or is 'o'utside a (head) chunk.


m_bioE

public char m_bioE
Whether this word 'b'egins, is 'i'nside, or is 'o'utside an extent chunk.


m_bracketE

public char m_bracketE
Whether a word 's'tarts or 'e'nds an extent, for use with bracket classifiers.


m_predLabel

public java.lang.String m_predLabel
A predicted label for the BIO status of the head.


m_predELabel

public java.lang.String m_predELabel
A predicted label for the BIO status of the extent.


prevEntWords

public static java.util.Set<java.lang.String> prevEntWords
The words of the previous entities.

Constructor Detail

BIOExample

public BIOExample(Doc doc,
                  int wordN,
                  char bioH,
                  char bioE,
                  BIOExample prev)
Constructs a BIO example for a given word with respect to its presence in a head and in an extent.

Parameters:
doc - The document containing the example word.
wordN - The word number of the example word.
bioH - The BIO status of the word with respect to a head. (unknown: used for evaluation where ground truth is not known)
bioE - The BIO status of the word with respect to an extent. (unknown: used for evaluation where ground truth is not known).
prev - The BIO example for the previous word, if any.

BIOExample

public BIOExample(Doc doc,
                  int wordN,
                  char bioH,
                  BIOExample prev)
Constructs a BIO example for a given word with respect to its presence in a head.

Parameters:
doc - The document containing the example word.
wordN - The word number of the example word.
bioH - The BIO status of the word with respect to a head. May be 'b', 'i', 'o', or 'u' (unknown: used for evaluation where ground truth is not known) (unknown: used for evaluation where ground truth is not known).
prev - The BIO example for the previous word, if any.