|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.illinois.cs.cogcomp.lbj.coref.ir.examples.Example
edu.illinois.cs.cogcomp.lbj.coref.ir.examples.WordExample
edu.illinois.cs.cogcomp.lbj.coref.ir.examples.ExtendHeadExample
public class ExtendHeadExample
Represents an example of a word associated with some head, used to determine whether the word is part of the extent of that head's mention. Holds a head and a label indicating whether the word is in the extent.
| Field Summary | |
|---|---|
protected Chunk |
m_head
The head associated with this example. |
boolean |
m_in
Label indicating whether the example word is in the head. |
| Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.ir.examples.WordExample |
|---|
m_doc, m_numWords, m_wordN |
| Constructor Summary | |
|---|---|
ExtendHeadExample(Doc doc,
Chunk head,
int wordN)
Constructs an example representing a word in a document, and a head: The example may or may not be a word in the extent associated with the given head. |
|
ExtendHeadExample(Doc doc,
Chunk head,
int wordN,
boolean in)
Constructs an example representing a word in a document, and a head, and a label indicating whether the word is part of the extent corresponding to the given head. |
|
| Method Summary | |
|---|---|
Chunk |
getHead()
Gets the head associated with this example. |
boolean |
isInExtent()
Gets the label indicating whether this example's word is part of the extent associated with this example's head. |
| 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 |
|---|
public boolean m_in
protected Chunk m_head
| Constructor Detail |
|---|
public ExtendHeadExample(Doc doc,
Chunk head,
int wordN,
boolean in)
doc - The document containing the word.head - The head associated with the extent of some mention.wordN - The (zero-based) word number of the word in the document.in - The label, indicating whether the given word is part of
the extent associated with the given head.
public ExtendHeadExample(Doc doc,
Chunk head,
int wordN)
doc - The document containing the word.head - The head associated with the extent of some mention.wordN - The (zero-based) word number of the word in the document.| Method Detail |
|---|
public Chunk getHead()
public boolean isInExtent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||