public class OntonotesReader extends AnnotationReader<TextAnnotation>
edu.illinois.cs.cogcomp.lbj.coref.io.loaders.DocCoNLLLoader from the Coref
package. This reader just processes TextAnnotations; Coreference mentions and gold labels
are ignored.corpusName, currentAnnotationId, resourceManager| Constructor and Description |
|---|
OntonotesReader(String ontonotesDirectory)
TODO: handle file extensions in OntoNotes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateReport()
TODO: generate a human-readable report of annotations read from the source file (plus whatever
other relevant statistics the user should know about).
|
boolean |
hasNext()
is there another annotation object to return?
|
protected void |
initializeReader()
called by constructor to perform subclass-specific initialization.
|
TextAnnotation |
next()
return the next annotation object.
|
iterator, remove, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingpublic OntonotesReader(String ontonotesDirectory)
ontonotesDirectory - public boolean hasNext()
AnnotationReaderhasNext in interface Iterator<TextAnnotation>hasNext in class AnnotationReader<TextAnnotation>protected void initializeReader()
AnnotationReaderinitializeReader in class AnnotationReader<TextAnnotation>public TextAnnotation next()
next in interface Iterator<TextAnnotation>next in class AnnotationReader<TextAnnotation>public String generateReport()
generateReport in class AnnotationReader<TextAnnotation>Copyright © 2017. All rights reserved.