@PipeBitInfo(name="XMI Writer (Dir Tree)", description="Writes XMI files with full representation of input text and all extracted information.", role=WRITER, dependencies=DOCUMENT_ID, usables=DOCUMENT_ID_PREFIX) public final class FileTreeXmiWriter extends AbstractOutputFileWriter
Constructor and Description |
---|
FileTreeXmiWriter() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(String outputDirectory) |
void |
writeFile(org.apache.uima.jcas.JCas jCas,
String outputDir,
String documentId,
String fileName)
Write information into a file named based upon the document id and located based upon the document id prefix.
|
getOutputDirectory, getSourceFileName, getSourceFilePath, getSubdirectory, initialize, process
getRequiredCasInterface, process, typeSystemInit
getCasInstancesRequired, hasNext, next
public void writeFile(org.apache.uima.jcas.JCas jCas, String outputDir, String documentId, String fileName) throws IOException
writeFile
in class AbstractOutputFileWriter
jCas
- ye oldeoutputDir
- output directorydocumentId
- some id for the cas documentfileName
- name for the output fileIOException
- if anything goes wrongpublic static org.apache.uima.analysis_engine.AnalysisEngine createEngine(String outputDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.