edu.stanford.nlp.dcoref
Class CoNLLMentionExtractor

java.lang.Object
  extended by edu.stanford.nlp.dcoref.MentionExtractor
      extended by edu.stanford.nlp.dcoref.CoNLLMentionExtractor

public class CoNLLMentionExtractor
extends MentionExtractor

Extracts coref mentions from a CoNLL2011 data files

Author:
Angel Chang

Field Summary
 
Fields inherited from class edu.stanford.nlp.dcoref.MentionExtractor
currentDocumentID, dictionaries, headFinder, maxID, mentionFinder, semantics, singletonPredictor, stanfordProcessor, VERBOSE
 
Constructor Summary
CoNLLMentionExtractor(Dictionaries dict, java.util.Properties props, Semantics semantics)
           
CoNLLMentionExtractor(Dictionaries dict, java.util.Properties props, Semantics semantics, LogisticClassifier<java.lang.String,java.lang.String> singletonModel)
           
 
Method Summary
 java.util.List<java.util.List<Mention>> extractGoldMentions(CoNLL2011DocumentReader.Document conllDoc)
           
static java.util.List<java.util.List<Mention>> makeCopy(java.util.List<java.util.List<Mention>> mentions)
           
 Document nextDoc()
          Extracts the info relevant for coref from the next document in the corpus
 void resetDocs()
          Reset so that we start at the beginning of the document collection
 
Methods inherited from class edu.stanford.nlp.dcoref.MentionExtractor
arrange, arrange, arrange, findExactMatch, getHeadIndex, initializeUtterance, loadStanfordProcessor, mergeLabels, setMentionFinder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoNLLMentionExtractor

public CoNLLMentionExtractor(Dictionaries dict,
                             java.util.Properties props,
                             Semantics semantics)
                      throws java.lang.Exception
Throws:
java.lang.Exception

CoNLLMentionExtractor

public CoNLLMentionExtractor(Dictionaries dict,
                             java.util.Properties props,
                             Semantics semantics,
                             LogisticClassifier<java.lang.String,java.lang.String> singletonModel)
                      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

resetDocs

public void resetDocs()
Description copied from class: MentionExtractor
Reset so that we start at the beginning of the document collection

Overrides:
resetDocs in class MentionExtractor

nextDoc

public Document nextDoc()
                 throws java.lang.Exception
Description copied from class: MentionExtractor
Extracts the info relevant for coref from the next document in the corpus

Overrides:
nextDoc in class MentionExtractor
Returns:
List of mentions found in each sentence ordered according to the tree traversal.
Throws:
java.lang.Exception

makeCopy

public static java.util.List<java.util.List<Mention>> makeCopy(java.util.List<java.util.List<Mention>> mentions)

extractGoldMentions

public java.util.List<java.util.List<Mention>> extractGoldMentions(CoNLL2011DocumentReader.Document conllDoc)


Stanford NLP Group