public abstract class AbstractSRLAnnotationReader extends PennTreebankReader
Modifier and Type | Field and Description |
---|---|
protected String |
dataHome |
static String |
HyphenTagInfo |
static String |
LemmaIdentifier |
protected boolean |
mergeContiguousCArgs |
static String |
SenseIdentifier |
protected String |
srlViewName |
combinedWSJHome, currentSectionId, PENN_TREEBANK_WSJ
corpusName, currentAnnotationId, resourceManager
Constructor and Description |
---|
AbstractSRLAnnotationReader(Iterable<TextAnnotation> list,
String treebankHome,
String nombankHome,
String[] sections,
String srlViewName,
boolean mergeContiguousCArgs) |
AbstractSRLAnnotationReader(String treebankHome) |
AbstractSRLAnnotationReader(String treebankHome,
String nombankHome,
String[] sections,
String srlViewName,
boolean mergeContiguousCArgs) |
AbstractSRLAnnotationReader(String treebankHome,
String nombankHome,
String srlViewName,
boolean mergeContiguousCArgs) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDataFile(String dataHome) |
boolean |
hasNext()
is there another annotation object to return?
|
TextAnnotation |
next()
return the next annotation object.
|
protected abstract edu.illinois.cs.cogcomp.nlp.corpusreaders.AbstractSRLAnnotationReader.Fields |
readFields(String line) |
generateReport, initializeReader, remove
iterator, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
public static final String LemmaIdentifier
public static final String SenseIdentifier
public static final String HyphenTagInfo
protected String srlViewName
protected boolean mergeContiguousCArgs
protected String dataHome
public AbstractSRLAnnotationReader(String treebankHome) throws Exception
Exception
public AbstractSRLAnnotationReader(String treebankHome, String nombankHome, String srlViewName, boolean mergeContiguousCArgs) throws Exception
Exception
public AbstractSRLAnnotationReader(String treebankHome, String nombankHome, String[] sections, String srlViewName, boolean mergeContiguousCArgs) throws Exception
Exception
public final boolean hasNext()
AnnotationReader
hasNext
in interface Iterator<TextAnnotation>
hasNext
in class PennTreebankReader
public final TextAnnotation next()
PennTreebankReader
next
in interface Iterator<TextAnnotation>
next
in class PennTreebankReader
protected abstract edu.illinois.cs.cogcomp.nlp.corpusreaders.AbstractSRLAnnotationReader.Fields readFields(String line)
Copyright © 2017. All rights reserved.