reader = new BufferedReader(new InputStreamReader(System.in));
} else {
reader = new BufferedReader(new FileReader(args[0]));
}
ChunkedSentenceReader sentReader = DefaultObjects
.getDefaultSentenceReader(reader);
OutputStream outStream = new FileOutputStream(args[1]);
LabeledBinaryExtractionWriter out = new LabeledBinaryExtractionWriter(
outStream);
ReVerbExtractor extractor = new ReVerbExtractor();
for (ChunkedSentence sent : sentReader.getSentences()) {
for (ChunkedBinaryExtraction extr : extractor.extract(sent)) {
LabeledBinaryExtraction extrLabeled = new LabeledBinaryExtraction(
extr, 0);
out.writeExtraction(extrLabeled);
}