public class CoNLL2011DocumentReader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CoNLL2011DocumentReader.CorefMentionAnnotation |
static class |
CoNLL2011DocumentReader.CorpusStats |
static class |
CoNLL2011DocumentReader.Document |
static class |
CoNLL2011DocumentReader.NamedEntityAnnotation |
static class |
CoNLL2011DocumentReader.Options
Flags
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.io.File> |
fileList |
static java.util.logging.Logger |
logger |
Constructor and Description |
---|
CoNLL2011DocumentReader(java.lang.String filepath) |
CoNLL2011DocumentReader(java.lang.String filepath,
CoNLL2011DocumentReader.Options options) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static Pair<java.lang.Integer,java.lang.Integer> |
getMention(java.lang.Integer index,
java.lang.String corefG,
java.util.List<CoreLabel> sentenceAnno) |
CoNLL2011DocumentReader.Document |
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.
|
void |
reset() |
static void |
usage() |
static void |
writeTabSep(java.io.PrintWriter pw,
CoreMap sentence,
CollectionValuedMap<java.lang.String,CoreMap> chainmap) |
protected final java.util.List<java.io.File> fileList
public static final java.util.logging.Logger logger
public CoNLL2011DocumentReader(java.lang.String filepath)
public CoNLL2011DocumentReader(java.lang.String filepath, CoNLL2011DocumentReader.Options options)
public void reset()
public CoNLL2011DocumentReader.Document 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