public class CoNLLDocumentReader extends java.lang.Object implements DocReader
Modifier and Type | Class and Description |
---|---|
static class |
CoNLLDocumentReader.CoNLLDocument |
static class |
CoNLLDocumentReader.CorefMentionAnnotation |
static class |
CoNLLDocumentReader.CorpusStats |
static class |
CoNLLDocumentReader.NamedEntityAnnotation |
static class |
CoNLLDocumentReader.Options
Flags
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.io.File> |
fileList |
Constructor and Description |
---|
CoNLLDocumentReader(java.lang.String filepath) |
CoNLLDocumentReader(java.lang.String filepath,
CoNLLDocumentReader.Options options) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.List<java.util.List<Mention>> |
extractGoldMentions(CoNLLDocumentReader.CoNLLDocument conllDoc) |
static Pair<java.lang.Integer,java.lang.Integer> |
getMention(java.lang.Integer index,
java.lang.String corefG,
java.util.List<CoreLabel> sentenceAnno) |
CoNLLDocumentReader.CoNLLDocument |
getNextDocument() |
static boolean |
include(java.util.Map<Pair<java.lang.Integer,java.lang.Integer>,java.lang.String> sentenceInfo,
Pair<java.lang.Integer,java.lang.Integer> mention,
java.lang.String corefG) |
static void |
main(java.lang.String[] args)
Reads and dumps output, mainly for debugging.
|
InputDoc |
nextDoc()
Read raw, CoNLL, ACE, or MUC document and return InputDoc
|
void |
reset() |
static void |
usage() |
static void |
writeTabSep(java.io.PrintWriter pw,
CoreMap sentence,
CollectionValuedMap<java.lang.String,CoreMap> chainmap) |
public CoNLLDocumentReader(java.lang.String filepath)
public CoNLLDocumentReader(java.lang.String filepath, CoNLLDocumentReader.Options options)
public CoNLLDocumentReader.CoNLLDocument getNextDocument()
public void close()
public static void usage()
public static Pair<java.lang.Integer,java.lang.Integer> getMention(java.lang.Integer index, java.lang.String corefG, java.util.List<CoreLabel> sentenceAnno)
public static boolean include(java.util.Map<Pair<java.lang.Integer,java.lang.Integer>,java.lang.String> sentenceInfo, Pair<java.lang.Integer,java.lang.Integer> mention, java.lang.String corefG)
public static void writeTabSep(java.io.PrintWriter pw, CoreMap sentence, CollectionValuedMap<java.lang.String,CoreMap> chainmap)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public InputDoc nextDoc()
DocReader
public java.util.List<java.util.List<Mention>> extractGoldMentions(CoNLLDocumentReader.CoNLLDocument conllDoc)