public class CoreNLPDocumentReader extends java.lang.Object implements DocReader
Modifier and Type | Class and Description |
---|---|
static class |
CoreNLPDocumentReader.Options
Flags
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.io.File> |
fileList |
protected static Redwood.RedwoodChannels |
logger
A logger for this class
|
Constructor and Description |
---|
CoreNLPDocumentReader(java.lang.String filepath) |
CoreNLPDocumentReader(java.lang.String filepath,
CoreNLPDocumentReader.Options options) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<Mention>> |
extractGoldMentions(Annotation annotation) |
Annotation |
getNextDocument() |
InputDoc |
nextDoc()
Read raw, CoNLL, ACE, or MUC document and return InputDoc
|
void |
reset() |
Mention |
toMention(CorefChain.CorefMention cm,
java.util.List<CoreMap> sentences) |
protected static final Redwood.RedwoodChannels logger
protected final java.util.List<java.io.File> fileList
public CoreNLPDocumentReader(java.lang.String filepath)
public CoreNLPDocumentReader(java.lang.String filepath, CoreNLPDocumentReader.Options options)
public Annotation getNextDocument()
public InputDoc nextDoc()
DocReader
public java.util.List<java.util.List<Mention>> extractGoldMentions(Annotation annotation)
public Mention toMention(CorefChain.CorefMention cm, java.util.List<CoreMap> sentences)