public class QuantitiesDataReader extends DataReader
TextAnnotation
-based BIO data reader. NB: This reader creates a
TokenLabelView
(meaning that each token will get a separate BIO label).CANDIDATE, candidates, currentCandidate, currentTextAnnotation, file, logger, preprocessor, rm, textAnnotations, viewName
Constructor and Description |
---|
QuantitiesDataReader(String file,
String corpusName) |
Modifier and Type | Method and Description |
---|---|
protected void |
addGoldView(TextAnnotation ta,
List<String> labels) |
List<Constituent> |
candidateGenerator(TextAnnotation ta) |
List<TextAnnotation> |
readData() |
addGoldBIOView, addGoldPOSView, close, getCorrectPath, getExactMatch, getFinalCandidates, next, reset
public List<TextAnnotation> readData()
readData
in class DataReader
public List<Constituent> candidateGenerator(TextAnnotation ta)
candidateGenerator
in class DataReader
protected void addGoldView(TextAnnotation ta, List<String> labels)
Copyright © 2017. All rights reserved.