use of de.tudarmstadt.ukp.clarin.webanno.tsv.internal.tsv3x.Tsv3XSerializer in project webanno by webanno.
the class WebannoTsv3XWriter method process.
@Override
public void process(JCas aJCas) throws AnalysisEngineProcessException {
TsvSchema schema = Tsv3XCasSchemaAnalyzer.analyze(aJCas.getTypeSystem());
TsvDocument doc = Tsv3XCasDocumentBuilder.of(schema, aJCas);
try (PrintWriter docOS = new PrintWriter(new OutputStreamWriter(getOutputStream(aJCas, filenameSuffix), encoding))) {
new Tsv3XSerializer().write(docOS, doc);
} catch (IOException e) {
throw new AnalysisEngineProcessException(e);
}
}
Aggregations