public class BIOCombinedReader extends BIOReader
Constructor and Description |
---|
BIOCombinedReader(int fold,
String mode,
String type) |
BIOCombinedReader(int fold,
String mode,
String type,
Boolean taOnly) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
generateNewSplit(List<String> corpus,
String prefix) |
static List<TextAnnotation> |
getTAs(List<String> scope) |
Object |
next() |
List<TextAnnotation> |
readTasByFold(int fold,
String mode) |
void |
reset() |
getTextAnnotations
public BIOCombinedReader(int fold, String mode, String type)
fold
- The fold index (0-4) you want to accessmode
- Indicates the corpus and train/eval e.g. "ERE-TRAIN"
mode "ALL-TRAIN/EVAL" indicates hybrid corpus.type
- Indicates the type (NAM/NOM/PRO/ALL) keptpublic List<TextAnnotation> readTasByFold(int fold, String mode)
public static void generateNewSplit(List<String> corpus, String prefix)
corpus
- A list of corpus that is in the splitting pool.prefix
- The prefix of the split record file for output.public static List<TextAnnotation> getTAs(List<String> scope)
public Object next()
public void reset()
Copyright © 2017. All rights reserved.