Class UimaSaxVinciFrameBuilder
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder
org.apache.uima.adapter.vinci.util.UimaSaxVinciFrameBuilder
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
A specialization of the general
SaxVinciFrameBuilder
utility for UIMA analysis
engine services. Adds two options:
- Supress document text
- Include spanned text as character content of all annotation FSs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The m doc text.private boolean
The m include spanned text in annotations.private boolean
The m supress document text. -
Constructor Summary
ConstructorsConstructorDescriptionUimaSaxVinciFrameBuilder
(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText) Instantiates a new uima sax vinci frame builder. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getLeafContent
(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf) Overridden to supress document content and include annotation spans.Methods inherited from class org.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder
characters, endElement, getName, setParentFrame, startDocument, startElement
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping
-
Field Details
-
mSupressDocumentText
private boolean mSupressDocumentTextThe m supress document text. -
mIncludeSpannedTextInAnnotations
private boolean mIncludeSpannedTextInAnnotationsThe m include spanned text in annotations. -
mDocText
The m doc text.
-
-
Constructor Details
-
UimaSaxVinciFrameBuilder
public UimaSaxVinciFrameBuilder(boolean aSupressDocumentText, boolean aIncludeSpannedTextInAnnotations, String aDocText) Instantiates a new uima sax vinci frame builder.- Parameters:
aSupressDocumentText
- the a supress document textaIncludeSpannedTextInAnnotations
- the a include spanned text in annotationsaDocText
- the a doc text
-
-
Method Details
-
getLeafContent
protected String getLeafContent(String aFrameName, Attributes aAttributes, StringBuffer aContentBuf) Overridden to supress document content and include annotation spans.- Overrides:
getLeafContent
in classSaxVinciFrameBuilder
- Parameters:
aFrameName
- the a frame nameaAttributes
- the a attributesaContentBuf
- the a content buf- Returns:
- the leaf content
- See Also:
-