public class PropertyTextWriter extends Object
Constructor and Description |
---|
PropertyTextWriter() |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.uima.jcas.JCas jcas)
Process the jcas and write sentence property lists to file.
|
void |
setOutputDirectory(String outputDirectoryPath) |
static void |
writeSentence(org.apache.uima.jcas.JCas jcas,
org.apache.uima.cas.text.AnnotationFS sentence,
BufferedWriter writer)
Write a sentence and list of event and anatomical site properties from the document text
|
public void setOutputDirectory(String outputDirectoryPath) throws IllegalArgumentException, SecurityException
outputDirectoryPath
- may be empty or null, in which case the current working directory is usedIllegalArgumentException
- if the provided path points to a File and not a DirectorySecurityException
- if the File System has issuespublic void process(org.apache.uima.jcas.JCas jcas)
jcas
- ye olde ...public static void writeSentence(org.apache.uima.jcas.JCas jcas, org.apache.uima.cas.text.AnnotationFS sentence, BufferedWriter writer) throws IOException
jcas
- ye olde ...sentence
- annotation containing the sentencewriter
- writer to which property lists for the sentence should be writtenIOException
- if the writer has issuesCopyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.