public class PennTreebankPOSReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
corpusName |
| Constructor and Description |
|---|
PennTreebankPOSReader(String corpusName) |
| Modifier and Type | Method and Description |
|---|---|
TextAnnotation |
createTextAnnotation(String line,
String lineId)
Create a new
TextAnnotation from a single line of bracketed text |
List<TextAnnotation> |
getTextAnnotations() |
void |
readFile(String fileName) |
protected final String corpusName
public PennTreebankPOSReader(String corpusName)
public void readFile(String fileName)
public TextAnnotation createTextAnnotation(String line, String lineId)
TextAnnotation from a single line of bracketed textline - The bracketed string to be processedlineId - The ID of the TextAnnotationTextAnnotation with a populated ViewNames.POS viewpublic List<TextAnnotation> getTextAnnotations()
Copyright © 2017. All rights reserved.