public class VinciCasDataConverter extends Object
| Constructor and Description |
|---|
VinciCasDataConverter(String aUeidType,
String aUeidFeature,
String aCasDataDocTextType,
String aCasDataDocTextFeature,
String aXCasDocTextTag,
boolean aIncludeAnnotationSpannedText)
Creates a new VinciCasDataConverter
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendVinciFrameToCasData(AFrame aCasFrame,
CasData aCasData)
Converts a VinciFrame to a CasData, appending to an existing CasData.
|
void |
casDataToVinciFrame(CasData aCasData,
AFrame aParentFrame)
Converts a CasData to a VinciFrame
|
CasData |
vinciFrameToCasData(AFrame aCasFrame)
Converts a VinciFrame to a CasData.
|
void |
vinciFrameToCasData(AFrame aCasFrame,
CasData aCasData)
Deprecated.
Use appendVinciFrameToCasData(Aframe, CasData) or vinciFrameToCasData(AFrame)
|
public VinciCasDataConverter(String aUeidType, String aUeidFeature, String aCasDataDocTextType, String aCasDataDocTextFeature, String aXCasDocTextTag, boolean aIncludeAnnotationSpannedText)
aUeidType - CasData type that contains the UEID (may be null)aUeidFeature - CasData feature that contains the UEID (may be null)aCasDataDocTextType - CasData type that contains the document textaCasDataDocTextFeature - CasData feature that contains the document textaXCasDocTextTag - XCas tag representing the document textaIncludeAnnotationSpannedText - if true, when generating XCas for an annotation, the spanned text of the annotation
will be included as the content of the XCas element.public void casDataToVinciFrame(CasData aCasData, AFrame aParentFrame) throws IOException, SAXException
aCasData - CasData to convertaParentFrame - VinciFrame to be the parent of the frame created from the CasDataIOExceptionSAXException@Deprecated public void vinciFrameToCasData(AFrame aCasFrame, CasData aCasData) throws SAXException
aCasFrame - VinciFrame containing XCASaCasData - CasData to which FeatureStructures from XCAS will be appendedSAXExceptionpublic CasData vinciFrameToCasData(AFrame aCasFrame) throws SAXException
aCasFrame - VinciFrame containing XCASSAXExceptionpublic void appendVinciFrameToCasData(AFrame aCasFrame, CasData aCasData) throws SAXException
aCasFrame - VinciFrame containing XCASaCasData - CasData to which FeatureStructures from XCAS will be appendedSAXExceptionCopyright © 2018. All rights reserved.