Package de.julielab.jcore.reader.ace
Class AceReader
- java.lang.Object
-
- org.apache.uima.resource.Resource_ImplBase
-
- org.apache.uima.resource.ConfigurableResource_ImplBase
-
- org.apache.uima.collection.CollectionReader_ImplBase
-
- de.julielab.jcore.reader.ace.AceReader
-
- All Implemented Interfaces:
org.apache.uima.collection.base_cpm.BaseCollectionReader,org.apache.uima.collection.CollectionReader,org.apache.uima.resource.ConfigurableResource,org.apache.uima.resource.Resource
public class AceReader extends org.apache.uima.collection.CollectionReader_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT_ANCHORXML element of content anchorstatic java.lang.StringELEMENT_BODYXML element of content BODYstatic java.lang.StringELEMENT_CHARSEQXML element of content charseqstatic java.lang.StringELEMENT_DOCUMENTXML element of content documentstatic java.lang.StringELEMENT_ENTITYXML element of content entitystatic java.lang.StringELEMENT_ENTITY_ATTRIBUTESXML element of content entity_attributesstatic java.lang.StringELEMENT_ENTITY_MENTIONXML element of content entity_mentionstatic java.lang.StringELEMENT_EVENTXML element of content eventstatic java.lang.StringELEMENT_EVENT_ARGUMENTXML element of content event_argumentstatic java.lang.StringELEMENT_EVENT_MENTIONXML element of content event_mentionstatic java.lang.StringELEMENT_EVENT_MENTION_ARGUMENTXML element of content event_mention_argumentstatic java.lang.StringELEMENT_EXTENTXML element of content extentstatic java.lang.StringELEMENT_HEADXML element of content headstatic java.lang.StringELEMENT_LDC_SCOPEXML element of content ldc_scopestatic java.lang.StringELEMENT_NAMEXML element of content namestatic java.lang.StringELEMENT_RELATIONXML element of content relationstatic java.lang.StringELEMENT_RELATION_ARGUMENTXML element of content relation_argumentstatic java.lang.StringELEMENT_RELATION_MENTIONXML element of content relation_mentionstatic java.lang.StringELEMENT_RELATION_MENTION_ARGUMENTXML element of content relation_mention_argumentstatic java.lang.StringELEMENT_SOURCE_FILEXML element of content source_filestatic java.lang.StringELEMENT_TEXTXML element of content TEXTstatic java.lang.StringELEMENT_TIMEX2XML element of content timex2static java.lang.StringELEMENT_TIMEX2_MENTIONXML element of content timex2_mentionstatic java.lang.StringELEMENT_VALUEXML element of content valuestatic java.lang.StringELEMENT_VALUE_MENTIONXML element of content value_mentionstatic java.lang.StringGENERATE_JCORE_TYPESstatic java.lang.StringITEM_ANCHOR_DIRXML item of content ANCHOR_DIRstatic java.lang.StringITEM_ANCHOR_VALXML item of content ANCHOR_VALstatic java.lang.StringITEM_AUTHORXML item of content AUTHORstatic java.lang.StringITEM_CLASSXML item of content CLASSstatic java.lang.StringITEM_COMMENTXML item of content COMMENTstatic java.lang.StringITEM_DOCIDXML item of content DOCIDstatic java.lang.StringITEM_ENCODINGXML item of content ENCODINGstatic java.lang.StringITEM_ENDXML item of content ENDstatic java.lang.StringITEM_GENERICITYXML item of content GENERICITYstatic java.lang.StringITEM_IDXML item of content IDstatic java.lang.StringITEM_LDCATRXML item of content LDCATRstatic java.lang.StringITEM_LDCTYPEXML item of content LDCTYPEstatic java.lang.StringITEM_LEVELXML item of content LEVELstatic java.lang.StringITEM_LEXICALCONDITIONXML item of content LEXICALCONDITIONstatic java.lang.StringITEM_METONYMY_MENTIONXML item of content METONYMY_MENTIONstatic java.lang.StringITEM_MODXML item of content MODstatic java.lang.StringITEM_MODALITYXML item of content MODALITYstatic java.lang.StringITEM_NON_SPECIFICXML item of content NON_SPECIFICstatic java.lang.StringITEM_POLARITYXML item of content POLARITYstatic java.lang.StringITEM_REFIDXML item of content REFIDstatic java.lang.StringITEM_ROLEXML item of content ROLEstatic java.lang.StringITEM_SETXML item of content SETstatic java.lang.StringITEM_SOURCEXML item of content SOURCEstatic java.lang.StringITEM_STARTXML item of content STARTstatic java.lang.StringITEM_SUBTYPEXML item of content SUBTYPEstatic java.lang.StringITEM_TENSEXML item of content TENSEstatic java.lang.StringITEM_TYPEXML item of content TYPEstatic java.lang.StringITEM_URIXML item of content URIstatic java.lang.StringITEM_VALXML item of content VALstatic java.lang.StringPARAM_INPUTDIRName of configuration parameter that must be set to the path of a directory containing input files.
-
Constructor Summary
Constructors Constructor Description AceReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDocumentInformation(org.w3c.dom.Node documentNode, de.julielab.jcore.types.ace.Document aceDocument, org.apache.uima.jcas.JCas jcas)This method is used to put the document information of the XML file into the proper object of the AceTypeSystem.voidaddEntityInformation(org.w3c.dom.Node entityNode, de.julielab.jcore.types.ace.Entity aceEntity, org.apache.uima.jcas.JCas jcas)This method is used to put the entities from the XML file into proper objects of the AceTypeSystemvoidaddEventInformation(org.w3c.dom.Node eventNode, de.julielab.jcore.types.ace.Event aceEvent, org.apache.uima.jcas.JCas jcas)This method is used to put the event information from the XML file into proper objects of the AceTypeSystemvoidaddRelationInformation(org.w3c.dom.Node relationNode, de.julielab.jcore.types.ace.Relation aceRelation, org.apache.uima.jcas.JCas jcas)This method is used to put the relation information from the XML file into proper objects of the AceTypeSystemvoidaddSourceFileInformation(org.w3c.dom.Document domDocument, org.apache.uima.jcas.JCas jcas)This method is used to put the source file information of the XML file into the proper object of the AceTypeSystem.voidaddTimex2Information(org.w3c.dom.Node timex2Node, de.julielab.jcore.types.ace.Timex2 aceTimex2, org.apache.uima.jcas.JCas jcas)This method is used to put the timex2 information from the XML file into proper objects of the AceTypeSystemvoidaddValueInformation(org.w3c.dom.Node valueNode, de.julielab.jcore.types.ace.Value aceValue, org.apache.uima.jcas.JCas jcas)This method is used to put the value information from the XML file into proper objects of the AceTypeSystemvoidclose()voidgenerateJulesTypes(org.apache.uima.jcas.JCas jcas)org.apache.uima.jcas.cas.FSArraygetDocumentFSArray(org.w3c.dom.Node sourceFileNode, org.apache.uima.jcas.JCas jcas)This method is used to build an FSArray which will contain instances of ace.Documentsorg.apache.uima.jcas.cas.FSArraygetEntityAttributesFSArray(org.w3c.dom.Node entityNode, org.apache.uima.jcas.JCas jcas)This method is used to build an FSArray which will contain entity attributesorg.apache.uima.jcas.cas.FSArraygetEntityFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceEntitiesorg.apache.uima.jcas.cas.FSArraygetEntityMentionFSArray(org.w3c.dom.Node entityNode, de.julielab.jcore.types.ace.Entity aceEntity, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of entityMentions of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetEventArgumentFSArray(org.w3c.dom.Node eventNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventArguments of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetEventFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceEventsorg.apache.uima.jcas.cas.FSArraygetEventMentionArgumentFSArray(org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventMentionArguments of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetEventMentionFSArray(org.w3c.dom.Node eventNode, de.julielab.jcore.types.ace.Event aceEvent, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventMentions of a specific XML nodevoidgetHeadInformation(de.julielab.jcore.types.ace.Head entityMentionHead, org.w3c.dom.Node entityMentionNode)This method is used to get the information about the head of an entity mentionvoidgetNext(org.apache.uima.cas.CAS cas)org.apache.uima.util.Progress[]getProgress()org.apache.uima.jcas.cas.FSArraygetRelationArgumentFSArray(org.w3c.dom.Node relationNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationArguments of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetRelationFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValuesorg.apache.uima.jcas.cas.FSArraygetRelationMentionArgumentFSArray(org.w3c.dom.Node relationMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationMentionArguments of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetRelationMentionFSArray(org.w3c.dom.Node relationNode, de.julielab.jcore.types.ace.Relation aceRelation, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationMentions of a specific XML nodejava.lang.StringgetSgmFileName(java.lang.String apfXmlFileName)This method turns a file name with the apf.xml extension into a file name with the sgm extensionjava.util.ArrayList<org.w3c.dom.Node>getSpecificNodeArrayList(org.w3c.dom.NodeList children, java.lang.String elementName)This method is used to retrieve from a NodeList the nodes with a specific name.org.apache.uima.jcas.cas.FSArraygetTimex2FSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValuesorg.apache.uima.jcas.cas.FSArraygetTimex2MentionFSArray(org.w3c.dom.Node timex2Node, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of timex2Mentions of a specific XML nodeorg.apache.uima.jcas.cas.FSArraygetValueFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValuesorg.apache.uima.jcas.cas.FSArraygetValueMentionFSArray(org.w3c.dom.Node valueNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of valueMentions of a specific XML nodebooleanhasNext()voidinitialize()This method is used to initialize attributes which are needed for the processing of the XML filesjava.lang.StringretrieveAttribute(org.w3c.dom.Node node, java.lang.String attributeName)This method is used to retrieve a certain attribute value from an XML nodeintretrieveStartEndValue(org.w3c.dom.Node node, java.lang.String itemName)This method is used to retrieve the value of either the start attribute or the end attribute of an XML node.voidsetDocumentText(org.apache.uima.jcas.JCas jcas, org.w3c.dom.Document sgmDomDocument)This method is used to set the document text to the casvoidsetEntityAttributes(de.julielab.jcore.types.ace.Entity aceEntity, org.w3c.dom.Node entityNode)This method is used to set the attributes for an aceEntityvoidsetEntityAttributesInformation(de.julielab.jcore.types.ace.EntityAttribute entityAttributes, org.w3c.dom.Node entityAttributesNode, org.apache.uima.jcas.JCas jcas)This method is used to set the attributes information of a particular instance of entityAttributesvoidsetEntityMentionAttributes(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode)This method is used to set the attributes for an entityMentionvoidsetEntityMentionHead(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to update the entity mention information by adding the entity mention headvoidsetEntityMentionStartEnd(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode)This method is used to retrieve the start and the of an entity mention from an XML nodevoidsetEventArgumentAttributes(de.julielab.jcore.types.ace.EventArgument eventArgument, org.w3c.dom.Node eventArgumentNode)This method is used to set the attributes for an eventArgumentvoidsetEventAttributes(de.julielab.jcore.types.ace.Event aceEvent, org.w3c.dom.Node eventNode)This method is used to set the attributes for an aceRelationvoidsetEventMentionAnchor(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to set the anchor for an eventMentionvoidsetEventMentionAnchorStartEnd(de.julielab.jcore.types.ace.Anchor eventMentionAnchor, org.w3c.dom.Node anchorNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetEventMentionArgumentAttributes(de.julielab.jcore.types.ace.EventMentionArgument eventMentionArgument, org.w3c.dom.Node eventMentionArgumentNode)This method is used to set the attributes for an eventMentionArgumentvoidsetEventMentionArgumentStartEnd(de.julielab.jcore.types.ace.EventMentionArgument eventMentionArgument, org.w3c.dom.Node eventMentionArgumentNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetEventMentionAttributes(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode)This method is used to set the attributes for an eventMentionvoidsetEventMentionLDCScope(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to set the LDC scope for an eventMentionvoidsetEventMentionLDCScopeStartEnd(de.julielab.jcore.types.ace.LDC_Scope eventMentionLDCScope, org.w3c.dom.Node LDCScopeNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetEventMentiuonStartEnd(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetJulesNameName(de.julielab.jcore.types.ace.Name julesName, org.w3c.dom.Node nameNode)This method is used to safely set the name attribute for the jules.types.Name.voidsetJulesNameStartEnd(de.julielab.jcore.types.ace.Name julesName, org.w3c.dom.Node nameNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetRelationArgumentAttributes(de.julielab.jcore.types.ace.RelationArgument relationArgument, org.w3c.dom.Node relationArgumentNode)This method is used to set the attributes for a relationArgumentvoidsetRelationAttributes(de.julielab.jcore.types.ace.Relation aceRelation, org.w3c.dom.Node relationNode)This method is used to set the attributes for an aceRelationvoidsetRelationMentionArgumentAttributes(de.julielab.jcore.types.ace.RelationMentionArgument relationMentionArgument, org.w3c.dom.Node relationMentionArgumentNode)This method is used to set the attributes for a relationMentionArgumentvoidsetRelationMentionArgumentStartEnd(de.julielab.jcore.types.ace.RelationMentionArgument relationMentionArgument, org.w3c.dom.Node relationMentionArgumentNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetRelationMentionAttributes(de.julielab.jcore.types.ace.RelationMention relationMention, org.w3c.dom.Node relationMentionNode)This method is used to set the attributes for a relationMentionvoidsetRelationMentionStartEnd(de.julielab.jcore.types.ace.RelationMention relationMention, org.w3c.dom.Node relationMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetSourceFileAttributes(de.julielab.jcore.types.ace.SourceFile aceSourceFile, org.w3c.dom.Node sourceFileNode)This method is used to set the attributes for a sourceFilevoidsetTimex2Attributes(de.julielab.jcore.types.ace.Timex2 aceTimex2, org.w3c.dom.Node timex2Node)This method is used to set the attributes for an aceTimex2voidsetTimex2MentionAttributes(de.julielab.jcore.types.ace.Timex2Mention timex2Mention, org.w3c.dom.Node timex2MentionNode)voidsetTimex2MentionStartEnd(de.julielab.jcore.types.ace.Timex2Mention timex2Mention, org.w3c.dom.Node timex2MentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidsetValueAttributes(de.julielab.jcore.types.ace.Value aceValue, org.w3c.dom.Node valueNode)This method is used to set the attributes for an aceValuevoidsetValueMentionAttributes(de.julielab.jcore.types.ace.ValueMention valueMention, org.w3c.dom.Node valueMentionNode)This method is used to set the attributes for a valueMentionvoidsetValueMentionStartEnd(de.julielab.jcore.types.ace.ValueMention valueMention, org.w3c.dom.Node valueMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace typevoidwriteFailureFile(java.lang.String fileName)This method is used for debugging purposes only-
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
-
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
-
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
GENERATE_JCORE_TYPES
public static final java.lang.String GENERATE_JCORE_TYPES
- See Also:
- Constant Field Values
-
PARAM_INPUTDIR
public static final java.lang.String PARAM_INPUTDIR
Name of configuration parameter that must be set to the path of a directory containing input files.- See Also:
- Constant Field Values
-
ELEMENT_ENTITY
public static final java.lang.String ELEMENT_ENTITY
XML element of content entity- See Also:
- Constant Field Values
-
ELEMENT_DOCUMENT
public static final java.lang.String ELEMENT_DOCUMENT
XML element of content document- See Also:
- Constant Field Values
-
ELEMENT_ENTITY_MENTION
public static final java.lang.String ELEMENT_ENTITY_MENTION
XML element of content entity_mention- See Also:
- Constant Field Values
-
ELEMENT_SOURCE_FILE
public static final java.lang.String ELEMENT_SOURCE_FILE
XML element of content source_file- See Also:
- Constant Field Values
-
ELEMENT_EXTENT
public static final java.lang.String ELEMENT_EXTENT
XML element of content extent- See Also:
- Constant Field Values
-
ELEMENT_HEAD
public static final java.lang.String ELEMENT_HEAD
XML element of content head- See Also:
- Constant Field Values
-
ELEMENT_CHARSEQ
public static final java.lang.String ELEMENT_CHARSEQ
XML element of content charseq- See Also:
- Constant Field Values
-
ELEMENT_ENTITY_ATTRIBUTES
public static final java.lang.String ELEMENT_ENTITY_ATTRIBUTES
XML element of content entity_attributes- See Also:
- Constant Field Values
-
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
XML element of content name- See Also:
- Constant Field Values
-
ELEMENT_VALUE
public static final java.lang.String ELEMENT_VALUE
XML element of content value- See Also:
- Constant Field Values
-
ELEMENT_TIMEX2
public static final java.lang.String ELEMENT_TIMEX2
XML element of content timex2- See Also:
- Constant Field Values
-
ELEMENT_VALUE_MENTION
public static final java.lang.String ELEMENT_VALUE_MENTION
XML element of content value_mention- See Also:
- Constant Field Values
-
ELEMENT_ANCHOR
public static final java.lang.String ELEMENT_ANCHOR
XML element of content anchor- See Also:
- Constant Field Values
-
ELEMENT_LDC_SCOPE
public static final java.lang.String ELEMENT_LDC_SCOPE
XML element of content ldc_scope- See Also:
- Constant Field Values
-
ELEMENT_TIMEX2_MENTION
public static final java.lang.String ELEMENT_TIMEX2_MENTION
XML element of content timex2_mention- See Also:
- Constant Field Values
-
ELEMENT_RELATION
public static final java.lang.String ELEMENT_RELATION
XML element of content relation- See Also:
- Constant Field Values
-
ELEMENT_EVENT
public static final java.lang.String ELEMENT_EVENT
XML element of content event- See Also:
- Constant Field Values
-
ELEMENT_RELATION_ARGUMENT
public static final java.lang.String ELEMENT_RELATION_ARGUMENT
XML element of content relation_argument- See Also:
- Constant Field Values
-
ELEMENT_EVENT_ARGUMENT
public static final java.lang.String ELEMENT_EVENT_ARGUMENT
XML element of content event_argument- See Also:
- Constant Field Values
-
ELEMENT_EVENT_MENTION
public static final java.lang.String ELEMENT_EVENT_MENTION
XML element of content event_mention- See Also:
- Constant Field Values
-
ELEMENT_RELATION_MENTION
public static final java.lang.String ELEMENT_RELATION_MENTION
XML element of content relation_mention- See Also:
- Constant Field Values
-
ELEMENT_RELATION_MENTION_ARGUMENT
public static final java.lang.String ELEMENT_RELATION_MENTION_ARGUMENT
XML element of content relation_mention_argument- See Also:
- Constant Field Values
-
ELEMENT_EVENT_MENTION_ARGUMENT
public static final java.lang.String ELEMENT_EVENT_MENTION_ARGUMENT
XML element of content event_mention_argument- See Also:
- Constant Field Values
-
ELEMENT_BODY
public static final java.lang.String ELEMENT_BODY
XML element of content BODY- See Also:
- Constant Field Values
-
ELEMENT_TEXT
public static final java.lang.String ELEMENT_TEXT
XML element of content TEXT- See Also:
- Constant Field Values
-
ITEM_START
public static final java.lang.String ITEM_START
XML item of content START- See Also:
- Constant Field Values
-
ITEM_END
public static final java.lang.String ITEM_END
XML item of content END- See Also:
- Constant Field Values
-
ITEM_ID
public static final java.lang.String ITEM_ID
XML item of content ID- See Also:
- Constant Field Values
-
ITEM_MOD
public static final java.lang.String ITEM_MOD
XML item of content MOD- See Also:
- Constant Field Values
-
ITEM_COMMENT
public static final java.lang.String ITEM_COMMENT
XML item of content COMMENT- See Also:
- Constant Field Values
-
ITEM_ANCHOR_VAL
public static final java.lang.String ITEM_ANCHOR_VAL
XML item of content ANCHOR_VAL- See Also:
- Constant Field Values
-
ITEM_VAL
public static final java.lang.String ITEM_VAL
XML item of content VAL- See Also:
- Constant Field Values
-
ITEM_SET
public static final java.lang.String ITEM_SET
XML item of content SET- See Also:
- Constant Field Values
-
ITEM_NON_SPECIFIC
public static final java.lang.String ITEM_NON_SPECIFIC
XML item of content NON_SPECIFIC- See Also:
- Constant Field Values
-
ITEM_ANCHOR_DIR
public static final java.lang.String ITEM_ANCHOR_DIR
XML item of content ANCHOR_DIR- See Also:
- Constant Field Values
-
ITEM_LEVEL
public static final java.lang.String ITEM_LEVEL
XML item of content LEVEL- See Also:
- Constant Field Values
-
ITEM_TYPE
public static final java.lang.String ITEM_TYPE
XML item of content TYPE- See Also:
- Constant Field Values
-
ITEM_SOURCE
public static final java.lang.String ITEM_SOURCE
XML item of content SOURCE- See Also:
- Constant Field Values
-
ITEM_AUTHOR
public static final java.lang.String ITEM_AUTHOR
XML item of content AUTHOR- See Also:
- Constant Field Values
-
ITEM_ENCODING
public static final java.lang.String ITEM_ENCODING
XML item of content ENCODING- See Also:
- Constant Field Values
-
ITEM_SUBTYPE
public static final java.lang.String ITEM_SUBTYPE
XML item of content SUBTYPE- See Also:
- Constant Field Values
-
ITEM_LDCTYPE
public static final java.lang.String ITEM_LDCTYPE
XML item of content LDCTYPE- See Also:
- Constant Field Values
-
ITEM_LDCATR
public static final java.lang.String ITEM_LDCATR
XML item of content LDCATR- See Also:
- Constant Field Values
-
ITEM_METONYMY_MENTION
public static final java.lang.String ITEM_METONYMY_MENTION
XML item of content METONYMY_MENTION- See Also:
- Constant Field Values
-
ITEM_TENSE
public static final java.lang.String ITEM_TENSE
XML item of content TENSE- See Also:
- Constant Field Values
-
ITEM_MODALITY
public static final java.lang.String ITEM_MODALITY
XML item of content MODALITY- See Also:
- Constant Field Values
-
ITEM_POLARITY
public static final java.lang.String ITEM_POLARITY
XML item of content POLARITY- See Also:
- Constant Field Values
-
ITEM_GENERICITY
public static final java.lang.String ITEM_GENERICITY
XML item of content GENERICITY- See Also:
- Constant Field Values
-
ITEM_CLASS
public static final java.lang.String ITEM_CLASS
XML item of content CLASS- See Also:
- Constant Field Values
-
ITEM_REFID
public static final java.lang.String ITEM_REFID
XML item of content REFID- See Also:
- Constant Field Values
-
ITEM_ROLE
public static final java.lang.String ITEM_ROLE
XML item of content ROLE- See Also:
- Constant Field Values
-
ITEM_URI
public static final java.lang.String ITEM_URI
XML item of content URI- See Also:
- Constant Field Values
-
ITEM_DOCID
public static final java.lang.String ITEM_DOCID
XML item of content DOCID- See Also:
- Constant Field Values
-
ITEM_LEXICALCONDITION
public static final java.lang.String ITEM_LEXICALCONDITION
XML item of content LEXICALCONDITION- See Also:
- Constant Field Values
-
-
Method Detail
-
getNext
public void getNext(org.apache.uima.cas.CAS cas) throws java.io.IOException, org.apache.uima.collection.CollectionException- Throws:
java.io.IOExceptionorg.apache.uima.collection.CollectionException- See Also:
CollectionReader.getNext(org.apache.uima.cas.CAS)
-
generateJulesTypes
public void generateJulesTypes(org.apache.uima.jcas.JCas jcas) throws java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException- Parameters:
jcas-- Throws:
java.lang.SecurityExceptionjava.lang.IllegalArgumentExceptionjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
writeFailureFile
public void writeFailureFile(java.lang.String fileName)
This method is used for debugging purposes only- Parameters:
fileName- String which specifies the destination file for the failure information
-
setDocumentText
public void setDocumentText(org.apache.uima.jcas.JCas jcas, org.w3c.dom.Document sgmDomDocument)This method is used to set the document text to the cas- Parameters:
jcas- JCas which will be updated by adding the document textsgmDomDocument- Document which will be parsed in order to retrieve the document text
-
getSgmFileName
public java.lang.String getSgmFileName(java.lang.String apfXmlFileName)
This method turns a file name with the apf.xml extension into a file name with the sgm extension- Parameters:
apfXmlFileName- String which specifies a file with the apf.xml extension- Returns:
- sgmFileName String which contains the file name with the smg extension
-
addTimex2Information
public void addTimex2Information(org.w3c.dom.Node timex2Node, de.julielab.jcore.types.ace.Timex2 aceTimex2, org.apache.uima.jcas.JCas jcas)This method is used to put the timex2 information from the XML file into proper objects of the AceTypeSystem- Parameters:
timex2Node- Node which will be parsed in order to retrieve timex2 informationaceTimex2- ace.Timex2 which will be updated by adding its attribute valuesjcas- Jcas which will be filled with retrieved information
-
addRelationInformation
public void addRelationInformation(org.w3c.dom.Node relationNode, de.julielab.jcore.types.ace.Relation aceRelation, org.apache.uima.jcas.JCas jcas)This method is used to put the relation information from the XML file into proper objects of the AceTypeSystem- Parameters:
relationNode- Node which will be parsed in order to retrieve relation informationaceRelation- ace.Relation which will be updated by adding its attribute valuesjcas- Jcas which will be filled with retrieved information
-
addEventInformation
public void addEventInformation(org.w3c.dom.Node eventNode, de.julielab.jcore.types.ace.Event aceEvent, org.apache.uima.jcas.JCas jcas)This method is used to put the event information from the XML file into proper objects of the AceTypeSystem- Parameters:
eventNode- Node which will be parsed in order to retrieve relation informationaceEvent- ace.Event which will be updated by adding its attribute valuesjcas- Jcas which will be filled with retrieved information
-
retrieveAttribute
public java.lang.String retrieveAttribute(org.w3c.dom.Node node, java.lang.String attributeName)This method is used to retrieve a certain attribute value from an XML node- Parameters:
node- Node which specified attribute will be parsed in order to retrieve its valueattributeName- String which specifies the name of the attribute which value is to be retrieved- Returns:
- attributeValue String which contains the retrieved attribute value
-
addValueInformation
public void addValueInformation(org.w3c.dom.Node valueNode, de.julielab.jcore.types.ace.Value aceValue, org.apache.uima.jcas.JCas jcas)This method is used to put the value information from the XML file into proper objects of the AceTypeSystem- Parameters:
valueNode- Node which will be parsed in order to retrieve value informationaceValue- ace.Value which will be updated by adding its attribute valuesjcas- Jcas which will be filled with retrieved information
-
addEntityInformation
public void addEntityInformation(org.w3c.dom.Node entityNode, de.julielab.jcore.types.ace.Entity aceEntity, org.apache.uima.jcas.JCas jcas)This method is used to put the entities from the XML file into proper objects of the AceTypeSystem- Parameters:
entityNode- Node which will be parsed in order to retrieve valuable informationaceEntity- ace.Entity which will be updated by adding its attribute valuesjcas- Jcas which will be filled with retrieved information
-
getEntityAttributesFSArray
public org.apache.uima.jcas.cas.FSArray getEntityAttributesFSArray(org.w3c.dom.Node entityNode, org.apache.uima.jcas.JCas jcas)This method is used to build an FSArray which will contain entity attributes- Parameters:
entityNode- Node which will be parsed in order to retrieve the entity attributes informationjcas- JCas which will be filled with retrieved information
-
setEntityAttributesInformation
public void setEntityAttributesInformation(de.julielab.jcore.types.ace.EntityAttribute entityAttributes, org.w3c.dom.Node entityAttributesNode, org.apache.uima.jcas.JCas jcas)This method is used to set the attributes information of a particular instance of entityAttributes- Parameters:
entityAttributes- ace.EntityAttributes which will be updated by adding of certain entity attributes informationentityAttributesNode- Node which will be parsed in order to retrieve entity attributes informationjcas- JCAs which will be filled with retrieved information
-
setJulesNameStartEnd
public void setJulesNameStartEnd(de.julielab.jcore.types.ace.Name julesName, org.w3c.dom.Node nameNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
julesName- jules.types.Name which will be updated by adding the start and end informationnameNode- Node which contains the name start and end
-
setValueMentionStartEnd
public void setValueMentionStartEnd(de.julielab.jcore.types.ace.ValueMention valueMention, org.w3c.dom.Node valueMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
valueMention- ValueMention which will be updated by adding the start and end informationvalueMentionNode- Node which contains start and end of the value
-
setRelationMentionStartEnd
public void setRelationMentionStartEnd(de.julielab.jcore.types.ace.RelationMention relationMention, org.w3c.dom.Node relationMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
relationMention- ace.RelationMention which will be updated by adding the start and end informationrelationMentionNode- Node which contains start and end of the value
-
setRelationMentionArgumentStartEnd
public void setRelationMentionArgumentStartEnd(de.julielab.jcore.types.ace.RelationMentionArgument relationMentionArgument, org.w3c.dom.Node relationMentionArgumentNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
relationMentionArgument- ace.RelationMentionArgument which will be updated by adding the start and end informationrelationMentionArgumentNode- Node which contains start and end of the value
-
setEventMentiuonStartEnd
public void setEventMentiuonStartEnd(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
eventMention- ace.EventMention which will be updated by adding the start and end informationeventMentionNode- Node which contains start and end of the value
-
setEventMentionArgumentStartEnd
public void setEventMentionArgumentStartEnd(de.julielab.jcore.types.ace.EventMentionArgument eventMentionArgument, org.w3c.dom.Node eventMentionArgumentNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
eventMentionArgument- ace.EventMentionArgument which will be updated by adding the start and end informationeventMentionArgumentNode- Node which contains start and end of the value
-
retrieveStartEndValue
public int retrieveStartEndValue(org.w3c.dom.Node node, java.lang.String itemName)This method is used to retrieve the value of either the start attribute or the end attribute of an XML node.- Parameters:
node- Node which will be parsed in order to retrieve the proper valuesitemName- String which specifies, which item of an XML node has to be retrieved
-
setTimex2MentionStartEnd
public void setTimex2MentionStartEnd(de.julielab.jcore.types.ace.Timex2Mention timex2Mention, org.w3c.dom.Node timex2MentionNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
timex2Mention- Timex2Mention which will be updated by adding the start and end informationtimex2MentionNode- Node which contains start and end of the value
-
setEventMentionAnchorStartEnd
public void setEventMentionAnchorStartEnd(de.julielab.jcore.types.ace.Anchor eventMentionAnchor, org.w3c.dom.Node anchorNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
eventMentionAnchor- ace.Anchor which will be updated by adding the start and end informationanchorNode- Node which contains start and end of the value
-
setEventMentionLDCScopeStartEnd
public void setEventMentionLDCScopeStartEnd(de.julielab.jcore.types.ace.LDC_Scope eventMentionLDCScope, org.w3c.dom.Node LDCScopeNode)This method is used to retrieve the start and the end of a value from an XML node and to set it to proper attributes of an ace type- Parameters:
eventMentionLDCScope- ace.LDC_Scope which will be updated by adding the start and end informationLDCScopeNode- Node which contains start and end of the value
-
setJulesNameName
public void setJulesNameName(de.julielab.jcore.types.ace.Name julesName, org.w3c.dom.Node nameNode)This method is used to safely set the name attribute for the jules.types.Name. In the unlikely case that some name node does not have a name, a try-catch-instruction will be used to provide proper exception handling.- Parameters:
julesName- jules.types.Name which attribute "name" will be updatednameNode- Node which attribute "NAME" will be parsed in order to retrieve its value
-
getEntityMentionFSArray
public org.apache.uima.jcas.cas.FSArray getEntityMentionFSArray(org.w3c.dom.Node entityNode, de.julielab.jcore.types.ace.Entity aceEntity, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of entityMentions of a specific XML node- Parameters:
entityNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
getTimex2MentionFSArray
public org.apache.uima.jcas.cas.FSArray getTimex2MentionFSArray(org.w3c.dom.Node timex2Node, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of timex2Mentions of a specific XML node- Parameters:
timex2Node- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
getRelationArgumentFSArray
public org.apache.uima.jcas.cas.FSArray getRelationArgumentFSArray(org.w3c.dom.Node relationNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationArguments of a specific XML node- Parameters:
relationNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
getEventArgumentFSArray
public org.apache.uima.jcas.cas.FSArray getEventArgumentFSArray(org.w3c.dom.Node eventNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventArguments of a specific XML node- Parameters:
eventNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
getEventMentionFSArray
public org.apache.uima.jcas.cas.FSArray getEventMentionFSArray(org.w3c.dom.Node eventNode, de.julielab.jcore.types.ace.Event aceEvent, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventMentions of a specific XML node- Parameters:
eventNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
getRelationMentionFSArray
public org.apache.uima.jcas.cas.FSArray getRelationMentionFSArray(org.w3c.dom.Node relationNode, de.julielab.jcore.types.ace.Relation aceRelation, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationMentions of a specific XML node- Parameters:
relationNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information- Returns:
- relationMentionFSArray FSarray which contains the relationMentions
-
getRelationMentionArgumentFSArray
public org.apache.uima.jcas.cas.FSArray getRelationMentionArgumentFSArray(org.w3c.dom.Node relationMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of RelationMentionArguments of a specific XML node- Parameters:
relationMentionNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved informationrelationMentionArgumentFSArray- FSArray which contains relationMentionArguments
-
getEventMentionArgumentFSArray
public org.apache.uima.jcas.cas.FSArray getEventMentionArgumentFSArray(org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of eventMentionArguments of a specific XML node- Parameters:
eventMentionNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved informationeventMentionArgumentFSArray- FSArray which contains eventMentionArguments
-
setEntityAttributes
public void setEntityAttributes(de.julielab.jcore.types.ace.Entity aceEntity, org.w3c.dom.Node entityNode)This method is used to set the attributes for an aceEntity- Parameters:
aceEntity- ace.Entity which will be updated by adding the attributes informationentityNode- Node which will be parsed in order to retrieve the attributes
-
setValueAttributes
public void setValueAttributes(de.julielab.jcore.types.ace.Value aceValue, org.w3c.dom.Node valueNode)This method is used to set the attributes for an aceValue- Parameters:
aceValue- ace.Value which will be updated by adding the attributes informationvalueNode- Node which will be parsed in order to retrieve the attributes
-
setRelationAttributes
public void setRelationAttributes(de.julielab.jcore.types.ace.Relation aceRelation, org.w3c.dom.Node relationNode)This method is used to set the attributes for an aceRelation- Parameters:
aceRelation- ace.Relation which will be updated by adding the attributes informationrelationNode- Node which will be parsed in order to retrieve the attributes
-
setEventAttributes
public void setEventAttributes(de.julielab.jcore.types.ace.Event aceEvent, org.w3c.dom.Node eventNode)This method is used to set the attributes for an aceRelation- Parameters:
aceEvent- ace.Event which will be updated by adding the attributes informationeventNode- Node which will be parsed in order to retrieve the attributes
-
setTimex2Attributes
public void setTimex2Attributes(de.julielab.jcore.types.ace.Timex2 aceTimex2, org.w3c.dom.Node timex2Node)This method is used to set the attributes for an aceTimex2- Parameters:
aceTimex2- ace.Timex2 which will be updated by adding the attributes informationtimex2Node- Node which will be parsed in order to retrieve the attributes
-
setTimex2MentionAttributes
public void setTimex2MentionAttributes(de.julielab.jcore.types.ace.Timex2Mention timex2Mention, org.w3c.dom.Node timex2MentionNode)
-
setRelationMentionArgumentAttributes
public void setRelationMentionArgumentAttributes(de.julielab.jcore.types.ace.RelationMentionArgument relationMentionArgument, org.w3c.dom.Node relationMentionArgumentNode)This method is used to set the attributes for a relationMentionArgument- Parameters:
relationMentionArgument- ace.RelationMentionArgument which will be updated by adding the attributes informationrelationMentionArgumentNode- Node which will be parsed in order to retrieve the attributes
-
setEventMentionArgumentAttributes
public void setEventMentionArgumentAttributes(de.julielab.jcore.types.ace.EventMentionArgument eventMentionArgument, org.w3c.dom.Node eventMentionArgumentNode)This method is used to set the attributes for an eventMentionArgument- Parameters:
eventMentionArgument- ace.EventMentionArgument which will be updated by adding the attributes informationeventMentionArgumentNode- Node which will be parsed in order to retrieve the attributes
-
setSourceFileAttributes
public void setSourceFileAttributes(de.julielab.jcore.types.ace.SourceFile aceSourceFile, org.w3c.dom.Node sourceFileNode)This method is used to set the attributes for a sourceFile- Parameters:
sourceFile- ace.SourceFile which will be updated by adding the attributes informationsourceFileNode- Node which will be parsed in order to retrieve the attributes
-
setEntityMentionAttributes
public void setEntityMentionAttributes(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode)This method is used to set the attributes for an entityMention- Parameters:
entityMention- ace.EntityMention which will be updated by adding the attributes informationentityMentionNode- Node which will be parsed in order to retrieve the attributes
-
setRelationArgumentAttributes
public void setRelationArgumentAttributes(de.julielab.jcore.types.ace.RelationArgument relationArgument, org.w3c.dom.Node relationArgumentNode)This method is used to set the attributes for a relationArgument- Parameters:
relationArgument- ace.RelationArgument which will be updated by adding the attributes informationrelationArgumentNode- Node which will be parsed in order to retrieve the attributes
-
setEventArgumentAttributes
public void setEventArgumentAttributes(de.julielab.jcore.types.ace.EventArgument eventArgument, org.w3c.dom.Node eventArgumentNode)This method is used to set the attributes for an eventArgument- Parameters:
eventArgument- ace.EventArgument which will be updated by adding the attributes informationeventArgumentNode- Node which will be parsed in order to retrieve the attributes
-
setEventMentionAttributes
public void setEventMentionAttributes(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode)This method is used to set the attributes for an eventMention- Parameters:
eventMention- ace.EventMention which will be updated by adding the attributes informationeventMentionNode- Node which will be parsed in order to retrieve the attributes
-
setEventMentionAnchor
public void setEventMentionAnchor(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to set the anchor for an eventMention- Parameters:
eventMention- ace.EventMention which will be updated by adding the anchor informationeventMentionNode- Node which will be parsed in order to retrieve the anchor informationjcas- JCas which will be filled with retrieved information
-
setEventMentionLDCScope
public void setEventMentionLDCScope(de.julielab.jcore.types.ace.EventMention eventMention, org.w3c.dom.Node eventMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to set the LDC scope for an eventMention- Parameters:
eventMention- ace.EventMention which will be updated by adding the LDC scope informationeventMentionNode- Node which will be parsed in order to retrieve the LDC scope informationjcas- JCas which will be filled with retrieved information
-
setRelationMentionAttributes
public void setRelationMentionAttributes(de.julielab.jcore.types.ace.RelationMention relationMention, org.w3c.dom.Node relationMentionNode)This method is used to set the attributes for a relationMention- Parameters:
relationMention- ace.RelationMention which will be updated by adding the attributes informationrelationMentionNode- Node which will be parsed in order to retrieve the attributes
-
setValueMentionAttributes
public void setValueMentionAttributes(de.julielab.jcore.types.ace.ValueMention valueMention, org.w3c.dom.Node valueMentionNode)This method is used to set the attributes for a valueMention- Parameters:
valueMention- ace.ValueMention which will be updated by adding the attributes informationvalueMentionNode- Node which will be parsed in order to retrieve the attributes
-
getValueMentionFSArray
public org.apache.uima.jcas.cas.FSArray getValueMentionFSArray(org.w3c.dom.Node valueNode, org.apache.uima.jcas.JCas jcas)This method is used to get an FSArray of valueMentions of a specific XML node- Parameters:
valueNode- Node which will be processed in order to extract the proper information to fill the FSArrayjcas- JCas which will be filled with retrieved information
-
setEntityMentionHead
public void setEntityMentionHead(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode, org.apache.uima.jcas.JCas jcas)This method is used to update the entity mention information by adding the entity mention head- Parameters:
entityMention- ace.EntityMention which head will be updatedentityMentionNode- Node which will be parsed in order to retrieve the head informationjcas- JCas which will be filled with retrieved information
-
setEntityMentionStartEnd
public void setEntityMentionStartEnd(de.julielab.jcore.types.ace.EntityMention entityMention, org.w3c.dom.Node entityMentionNode)This method is used to retrieve the start and the of an entity mention from an XML node- Parameters:
entityMention- jules.types.ace.EntityMention which will be updated by adding the start and end informationentityMentionNode- Node which contains the entity mention start and end
-
getHeadInformation
public void getHeadInformation(de.julielab.jcore.types.ace.Head entityMentionHead, org.w3c.dom.Node entityMentionNode)This method is used to get the information about the head of an entity mention- Parameters:
entityMentionHead- the jules.types.ace.Head which will be returned after retrieving information from the XML fileentityMentionNode- a Node which contain the head information
-
getSpecificNodeArrayList
public java.util.ArrayList<org.w3c.dom.Node> getSpecificNodeArrayList(org.w3c.dom.NodeList children, java.lang.String elementName)This method is used to retrieve from a NodeList the nodes with a specific name. Note that an ArrayList is returned, not a NodeList!- Parameters:
children- NodeList from which specific nodes will be retrievedelementName- String which specifies the name of the nodes which will be retrieved from the NodeList- Returns:
- specificNodeArrayList ArrayList which contains retrieved nodes from the NodeList
-
addDocumentInformation
public void addDocumentInformation(org.w3c.dom.Node documentNode, de.julielab.jcore.types.ace.Document aceDocument, org.apache.uima.jcas.JCas jcas)This method is used to put the document information of the XML file into the proper object of the AceTypeSystem.- Parameters:
documentNode- Node which will be parsed in order to retrieve the document informationaceDocument- ace.Document which will be updated by adding retrieved document informationjcas- JCas which will be filled with retrieved information
-
getEntityFSArray
public org.apache.uima.jcas.cas.FSArray getEntityFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceEntities- Parameters:
documentNode- Node that will be parsed in order to retrieve entity informationjcas- JCas which will be filled with retrieved information
-
getValueFSArray
public org.apache.uima.jcas.cas.FSArray getValueFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValues- Parameters:
documentNode- Node that will be parsed in order to retrieve value informationjcas- JCas which will be filled with retrieved information
-
getTimex2FSArray
public org.apache.uima.jcas.cas.FSArray getTimex2FSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValues- Parameters:
documentNode- Node that will be parsed in order to retrieve value informationjcas- JCas which will be filled with retrieved information
-
getRelationFSArray
public org.apache.uima.jcas.cas.FSArray getRelationFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceValues- Parameters:
documentNode- Node that will be parsed in order to retrieve value informationjcas- JCas which will be filled with retrieved information
-
getEventFSArray
public org.apache.uima.jcas.cas.FSArray getEventFSArray(org.w3c.dom.Node documentNode, org.apache.uima.jcas.JCas jcas)This method is used to build the FSArray which will contain aceEvents- Parameters:
documentNode- Node that will be parsed in order to retrieve value informationjcas- JCas which will be filled with retrieved information
-
addSourceFileInformation
public void addSourceFileInformation(org.w3c.dom.Document domDocument, org.apache.uima.jcas.JCas jcas)This method is used to put the source file information of the XML file into the proper object of the AceTypeSystem.- Parameters:
domDocument- the Document which contains the parsed information from the XML filejcas- JCas which will be filled with retrieved information
-
getDocumentFSArray
public org.apache.uima.jcas.cas.FSArray getDocumentFSArray(org.w3c.dom.Node sourceFileNode, org.apache.uima.jcas.JCas jcas)This method is used to build an FSArray which will contain instances of ace.Documents- Parameters:
domDocument- Document which will be parsed in order to retrieve aceDocument informationjcas- JCas which will be filled with retrieved information
-
initialize
public void initialize()
This method is used to initialize attributes which are needed for the processing of the XML files- Overrides:
initializein classorg.apache.uima.collection.CollectionReader_ImplBase
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
getProgress
public org.apache.uima.util.Progress[] getProgress()
-
hasNext
public boolean hasNext() throws java.io.IOException, org.apache.uima.collection.CollectionException- Throws:
java.io.IOExceptionorg.apache.uima.collection.CollectionException- See Also:
BaseCollectionReader.hasNext()
-
-