public class AnnotationViewGenerator extends Object
| Constructor and Description |
|---|
AnnotationViewGenerator(File aOutputDir)
Creates a new AnnotationViewGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
autoGenerateStyleMap(org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData aTaeMetaData)
Automatically generates a style map for the given text analysis engine.
|
static String |
autoGenerateStyleMap(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem)
Automatically generates a style map for the given type system.
|
void |
autoGenerateStyleMapFile(org.apache.uima.analysis_engine.AnalysisEngine aAE,
File aStyleMapFile)
Automatically generates a style map file for the given analysis engine.
|
void |
autoGenerateStyleMapFile(org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData aMetaData,
File aStyleMapFile)
Automatically generates a style map file for the given analysis engine metadata.
|
void |
autoGenerateStyleMapFile(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
File aStyleMapFile)
Automatically generates a style map file for the given type system.
|
void |
processDocument(File aInlineXmlDoc)
Processes an annotated document using the docFrame.xsl stylsheet generated by a previous call
to
processStyleMap(File). |
void |
processStyleMap(File aStyleMap)
Processes a user-specified file map and produces three outputs:
annotations.css - A CSS stylesheet for the annotation viewer
legend.html - HTML document for legend (bottom pane of viewer)
docFrame.xsl - An XSL stylesheet to be applied to annotated documents during calls to
processDocument(File).
|
public AnnotationViewGenerator(File aOutputDir)
aOutputDir - directory in which this program will write its output files.public void processStyleMap(File aStyleMap) throws TransformerException
processDocument(File).aStyleMap - path to style map to be processedTransformerException - the transformer exceptionpublic void processDocument(File aInlineXmlDoc) throws TransformerException
processStyleMap(File). Generates a file named docView.html, which represents the
HTML view of the annotated document.aInlineXmlDoc - path to annotated document to be processedTransformerException - the transformer exceptionpublic static String autoGenerateStyleMap(org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData aTaeMetaData)
aTaeMetaData - Metadata of the Text Analysis Engine whose outputs will be viewed using the generated
style map.public static String autoGenerateStyleMap(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem)
aTypeSystem - the type system for which a style map will be generatedpublic void autoGenerateStyleMapFile(org.apache.uima.analysis_engine.AnalysisEngine aAE,
File aStyleMapFile)
throws IOException
aStyleMapFile.aAE - the Analysis Engine whose outputs will be viewed using the generated style map.aStyleMapFile - file to which autogenerated style map will be writtenIOException - Signals that an I/O exception has occurred.public void autoGenerateStyleMapFile(org.apache.uima.analysis_engine.metadata.AnalysisEngineMetaData aMetaData,
File aStyleMapFile)
throws IOException
aStyleMapFile.aMetaData - Metadata of the Analysis Engine whose outputs will be viewed using the generated style
map.aStyleMapFile - file to which autogenerated style map will be writtenIOException - Signals that an I/O exception has occurred.public void autoGenerateStyleMapFile(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
File aStyleMapFile)
throws IOException
aStyleMapFile.aTypeSystem - the type system for which a style map will be generatedaStyleMapFile - file to which autogenerated style map will be writtenIOException - Signals that an I/O exception has occurred.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.