public class AceReader
extends org.apache.uima.collection.CollectionReader_ImplBase
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_ANCHOR
XML element of content anchor
|
static String |
ELEMENT_BODY
XML element of content BODY
|
static String |
ELEMENT_CHARSEQ
XML element of content charseq
|
static String |
ELEMENT_DOCUMENT
XML element of content document
|
static String |
ELEMENT_ENTITY
XML element of content entity
|
static String |
ELEMENT_ENTITY_ATTRIBUTES
XML element of content entity_attributes
|
static String |
ELEMENT_ENTITY_MENTION
XML element of content entity_mention
|
static String |
ELEMENT_EVENT
XML element of content event
|
static String |
ELEMENT_EVENT_ARGUMENT
XML element of content event_argument
|
static String |
ELEMENT_EVENT_MENTION
XML element of content event_mention
|
static String |
ELEMENT_EVENT_MENTION_ARGUMENT
XML element of content event_mention_argument
|
static String |
ELEMENT_EXTENT
XML element of content extent
|
static String |
ELEMENT_HEAD
XML element of content head
|
static String |
ELEMENT_LDC_SCOPE
XML element of content ldc_scope
|
static String |
ELEMENT_NAME
XML element of content name
|
static String |
ELEMENT_RELATION
XML element of content relation
|
static String |
ELEMENT_RELATION_ARGUMENT
XML element of content relation_argument
|
static String |
ELEMENT_RELATION_MENTION
XML element of content relation_mention
|
static String |
ELEMENT_RELATION_MENTION_ARGUMENT
XML element of content relation_mention_argument
|
static String |
ELEMENT_SOURCE_FILE
XML element of content source_file
|
static String |
ELEMENT_TEXT
XML element of content TEXT
|
static String |
ELEMENT_TIMEX2
XML element of content timex2
|
static String |
ELEMENT_TIMEX2_MENTION
XML element of content timex2_mention
|
static String |
ELEMENT_VALUE
XML element of content value
|
static String |
ELEMENT_VALUE_MENTION
XML element of content value_mention
|
static String |
ITEM_ANCHOR_DIR
XML item of content ANCHOR_DIR
|
static String |
ITEM_ANCHOR_VAL
XML item of content ANCHOR_VAL
|
static String |
ITEM_AUTHOR
XML item of content AUTHOR
|
static String |
ITEM_CLASS
XML item of content CLASS
|
static String |
ITEM_COMMENT
XML item of content COMMENT
|
static String |
ITEM_DOCID
XML item of content DOCID
|
static String |
ITEM_ENCODING
XML item of content ENCODING
|
static String |
ITEM_END
XML item of content END
|
static String |
ITEM_GENERICITY
XML item of content GENERICITY
|
static String |
ITEM_ID
XML item of content ID
|
static String |
ITEM_LDCATR
XML item of content LDCATR
|
static String |
ITEM_LDCTYPE
XML item of content LDCTYPE
|
static String |
ITEM_LEVEL
XML item of content LEVEL
|
static String |
ITEM_LEXICALCONDITION
XML item of content LEXICALCONDITION
|
static String |
ITEM_METONYMY_MENTION
XML item of content METONYMY_MENTION
|
static String |
ITEM_MOD
XML item of content MOD
|
static String |
ITEM_MODALITY
XML item of content MODALITY
|
static String |
ITEM_NON_SPECIFIC
XML item of content NON_SPECIFIC
|
static String |
ITEM_POLARITY
XML item of content POLARITY
|
static String |
ITEM_REFID
XML item of content REFID
|
static String |
ITEM_ROLE
XML item of content ROLE
|
static String |
ITEM_SET
XML item of content SET
|
static String |
ITEM_SOURCE
XML item of content SOURCE
|
static String |
ITEM_START
XML item of content START
|
static String |
ITEM_SUBTYPE
XML item of content SUBTYPE
|
static String |
ITEM_TENSE
XML item of content TENSE
|
static String |
ITEM_TYPE
XML item of content TYPE
|
static String |
ITEM_URI
XML item of content URI
|
static String |
ITEM_VAL
XML item of content VAL
|
static String |
PARAM_INPUTDIR
Name of configuration parameter that must be set to the path of a directory containing input files.
|
| Constructor and Description |
|---|
AceReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentInformation(Node documentNode,
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.
|
void |
addEntityInformation(Node entityNode,
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
|
void |
addEventInformation(Node eventNode,
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
|
void |
addRelationInformation(Node relationNode,
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
|
void |
addSourceFileInformation(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.
|
void |
addTimex2Information(Node timex2Node,
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
|
void |
addValueInformation(Node valueNode,
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
|
void |
close() |
void |
generateJulesTypes(org.apache.uima.jcas.JCas jcas) |
org.apache.uima.jcas.cas.FSArray |
getDocumentFSArray(Node sourceFileNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build an FSArray which will contain instances of ace.Documents
|
org.apache.uima.jcas.cas.FSArray |
getEntityAttributesFSArray(Node entityNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build an FSArray which will contain entity attributes
|
org.apache.uima.jcas.cas.FSArray |
getEntityFSArray(Node documentNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build the FSArray which will contain aceEntities
|
org.apache.uima.jcas.cas.FSArray |
getEntityMentionFSArray(Node entityNode,
Entity aceEntity,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of entityMentions of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getEventArgumentFSArray(Node eventNode,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of eventArguments of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getEventFSArray(Node documentNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build the FSArray which will contain aceEvents
|
org.apache.uima.jcas.cas.FSArray |
getEventMentionArgumentFSArray(Node eventMentionNode,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of eventMentionArguments of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getEventMentionFSArray(Node eventNode,
Event aceEvent,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of eventMentions of a specific XML node
|
void |
getHeadInformation(Head entityMentionHead,
Node entityMentionNode)
This method is used to get the information about the head of an entity mention
|
void |
getNext(org.apache.uima.cas.CAS cas) |
org.apache.uima.util.Progress[] |
getProgress() |
org.apache.uima.jcas.cas.FSArray |
getRelationArgumentFSArray(Node relationNode,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of RelationArguments of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getRelationFSArray(Node documentNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build the FSArray which will contain aceValues
|
org.apache.uima.jcas.cas.FSArray |
getRelationMentionArgumentFSArray(Node relationMentionNode,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of RelationMentionArguments of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getRelationMentionFSArray(Node relationNode,
Relation aceRelation,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of RelationMentions of a specific XML node
|
String |
getSgmFileName(String apfXmlFileName)
This method turns a file name with the apf.xml extension into a file name with the sgm extension
|
ArrayList<Node> |
getSpecificNodeArrayList(NodeList children,
String elementName)
This method is used to retrieve from a NodeList the nodes with a specific name.
|
org.apache.uima.jcas.cas.FSArray |
getTimex2FSArray(Node documentNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build the FSArray which will contain aceValues
|
org.apache.uima.jcas.cas.FSArray |
getTimex2MentionFSArray(Node timex2Node,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of timex2Mentions of a specific XML node
|
org.apache.uima.jcas.cas.FSArray |
getValueFSArray(Node documentNode,
org.apache.uima.jcas.JCas jcas)
This method is used to build the FSArray which will contain aceValues
|
org.apache.uima.jcas.cas.FSArray |
getValueMentionFSArray(Node valueNode,
org.apache.uima.jcas.JCas jcas)
This method is used to get an FSArray of valueMentions of a specific XML node
|
boolean |
hasNext() |
void |
initialize()
This method is used to initialize attributes which are needed for the processing of the XML files
|
String |
retrieveAttribute(Node node,
String attributeName)
This method is used to retrieve a certain attribute value from an XML node
|
int |
retrieveStartEndValue(Node node,
String itemName)
This method is used to retrieve the value of either the start attribute or the end attribute of an XML node.
|
void |
setDocumentText(org.apache.uima.jcas.JCas jcas,
Document sgmDomDocument)
This method is used to set the document text to the cas
|
void |
setEntityAttributes(Entity aceEntity,
Node entityNode)
This method is used to set the attributes for an aceEntity
|
void |
setEntityAttributesInformation(EntityAttribute entityAttributes,
Node entityAttributesNode,
org.apache.uima.jcas.JCas jcas)
This method is used to set the attributes information of a particular instance of entityAttributes
|
void |
setEntityMentionAttributes(EntityMention entityMention,
Node entityMentionNode)
This method is used to set the attributes for an entityMention
|
void |
setEntityMentionHead(EntityMention entityMention,
Node entityMentionNode,
org.apache.uima.jcas.JCas jcas)
This method is used to update the entity mention information by adding the entity mention head
|
void |
setEntityMentionStartEnd(EntityMention entityMention,
Node entityMentionNode)
This method is used to retrieve the start and the of an entity mention from an XML node
|
void |
setEventArgumentAttributes(EventArgument eventArgument,
Node eventArgumentNode)
This method is used to set the attributes for an eventArgument
|
void |
setEventAttributes(Event aceEvent,
Node eventNode)
This method is used to set the attributes for an aceRelation
|
void |
setEventMentionAnchor(EventMention eventMention,
Node eventMentionNode,
org.apache.uima.jcas.JCas jcas)
This method is used to set the anchor for an eventMention
|
void |
setEventMentionAnchorStartEnd(Anchor eventMentionAnchor,
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
|
void |
setEventMentionArgumentAttributes(EventMentionArgument eventMentionArgument,
Node eventMentionArgumentNode)
This method is used to set the attributes for an eventMentionArgument
|
void |
setEventMentionArgumentStartEnd(EventMentionArgument eventMentionArgument,
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
|
void |
setEventMentionAttributes(EventMention eventMention,
Node eventMentionNode)
This method is used to set the attributes for an eventMention
|
void |
setEventMentionLDCScope(EventMention eventMention,
Node eventMentionNode,
org.apache.uima.jcas.JCas jcas)
This method is used to set the LDC scope for an eventMention
|
void |
setEventMentionLDCScopeStartEnd(LDC_Scope eventMentionLDCScope,
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
|
void |
setEventMentiuonStartEnd(EventMention eventMention,
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
|
void |
setJulesNameName(Name julesName,
Node nameNode)
This method is used to safely set the name attribute for the jules.types.Name.
|
void |
setJulesNameStartEnd(Name julesName,
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
|
void |
setRelationArgumentAttributes(RelationArgument relationArgument,
Node relationArgumentNode)
This method is used to set the attributes for a relationArgument
|
void |
setRelationAttributes(Relation aceRelation,
Node relationNode)
This method is used to set the attributes for an aceRelation
|
void |
setRelationMentionArgumentAttributes(RelationMentionArgument relationMentionArgument,
Node relationMentionArgumentNode)
This method is used to set the attributes for a relationMentionArgument
|
void |
setRelationMentionArgumentStartEnd(RelationMentionArgument relationMentionArgument,
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
|
void |
setRelationMentionAttributes(RelationMention relationMention,
Node relationMentionNode)
This method is used to set the attributes for a relationMention
|
void |
setRelationMentionStartEnd(RelationMention relationMention,
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
|
void |
setSourceFileAttributes(SourceFile aceSourceFile,
Node sourceFileNode)
This method is used to set the attributes for a sourceFile
|
void |
setTimex2Attributes(Timex2 aceTimex2,
Node timex2Node)
This method is used to set the attributes for an aceTimex2
|
void |
setTimex2MentionAttributes(Timex2Mention timex2Mention,
Node timex2MentionNode) |
void |
setTimex2MentionStartEnd(Timex2Mention timex2Mention,
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
|
void |
setValueAttributes(Value aceValue,
Node valueNode)
This method is used to set the attributes for an aceValue
|
void |
setValueMentionAttributes(ValueMention valueMention,
Node valueMentionNode)
This method is used to set the attributes for a valueMention
|
void |
setValueMentionStartEnd(ValueMention valueMention,
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
|
void |
writeFailureFile(String fileName)
This method is used for debugging purposes only
|
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String PARAM_INPUTDIR
public static final String ELEMENT_ENTITY
public static final String ELEMENT_DOCUMENT
public static final String ELEMENT_ENTITY_MENTION
public static final String ELEMENT_SOURCE_FILE
public static final String ELEMENT_EXTENT
public static final String ELEMENT_HEAD
public static final String ELEMENT_CHARSEQ
public static final String ELEMENT_ENTITY_ATTRIBUTES
public static final String ELEMENT_NAME
public static final String ELEMENT_VALUE
public static final String ELEMENT_TIMEX2
public static final String ELEMENT_VALUE_MENTION
public static final String ELEMENT_ANCHOR
public static final String ELEMENT_LDC_SCOPE
public static final String ELEMENT_TIMEX2_MENTION
public static final String ELEMENT_RELATION
public static final String ELEMENT_EVENT
public static final String ELEMENT_RELATION_ARGUMENT
public static final String ELEMENT_EVENT_ARGUMENT
public static final String ELEMENT_EVENT_MENTION
public static final String ELEMENT_RELATION_MENTION
public static final String ELEMENT_RELATION_MENTION_ARGUMENT
public static final String ELEMENT_EVENT_MENTION_ARGUMENT
public static final String ELEMENT_BODY
public static final String ELEMENT_TEXT
public static final String ITEM_START
public static final String ITEM_END
public static final String ITEM_ID
public static final String ITEM_MOD
public static final String ITEM_COMMENT
public static final String ITEM_ANCHOR_VAL
public static final String ITEM_VAL
public static final String ITEM_SET
public static final String ITEM_NON_SPECIFIC
public static final String ITEM_ANCHOR_DIR
public static final String ITEM_LEVEL
public static final String ITEM_TYPE
public static final String ITEM_SOURCE
public static final String ITEM_AUTHOR
public static final String ITEM_ENCODING
public static final String ITEM_SUBTYPE
public static final String ITEM_LDCTYPE
public static final String ITEM_LDCATR
public static final String ITEM_METONYMY_MENTION
public static final String ITEM_TENSE
public static final String ITEM_MODALITY
public static final String ITEM_POLARITY
public static final String ITEM_GENERICITY
public static final String ITEM_CLASS
public static final String ITEM_REFID
public static final String ITEM_ROLE
public static final String ITEM_URI
public static final String ITEM_DOCID
public static final String ITEM_LEXICALCONDITION
public void getNext(org.apache.uima.cas.CAS cas)
throws IOException,
org.apache.uima.collection.CollectionException
IOExceptionorg.apache.uima.collection.CollectionExceptionCollectionReader.getNext(org.apache.uima.cas.CAS)public void generateJulesTypes(org.apache.uima.jcas.JCas jcas)
throws SecurityException,
IllegalArgumentException,
ClassNotFoundException,
NoSuchMethodException,
InstantiationException,
IllegalAccessException,
InvocationTargetException
public void writeFailureFile(String fileName)
fileName - String which specifies the destination file for the failure informationpublic void setDocumentText(org.apache.uima.jcas.JCas jcas,
Document sgmDomDocument)
jcas - JCas which will be updated by adding the document textsgmDomDocument - Document which will be parsed in order to retrieve the document textpublic String getSgmFileName(String apfXmlFileName)
apfXmlFileName - String which specifies a file with the apf.xml extensionpublic void addTimex2Information(Node timex2Node, Timex2 aceTimex2, org.apache.uima.jcas.JCas jcas)
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 informationpublic void addRelationInformation(Node relationNode, Relation aceRelation, org.apache.uima.jcas.JCas jcas)
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 informationpublic void addEventInformation(Node eventNode, Event aceEvent, org.apache.uima.jcas.JCas jcas)
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 informationpublic String retrieveAttribute(Node node, String attributeName)
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 retrievedpublic void addValueInformation(Node valueNode, Value aceValue, org.apache.uima.jcas.JCas jcas)
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 informationpublic void addEntityInformation(Node entityNode, Entity aceEntity, org.apache.uima.jcas.JCas jcas)
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 informationpublic org.apache.uima.jcas.cas.FSArray getEntityAttributesFSArray(Node entityNode, org.apache.uima.jcas.JCas jcas)
entityNode - Node which will be parsed in order to retrieve the entity attributes informationjcas - JCas which will be filled with retrieved informationpublic void setEntityAttributesInformation(EntityAttribute entityAttributes, Node entityAttributesNode, org.apache.uima.jcas.JCas jcas)
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 informationpublic void setJulesNameStartEnd(Name julesName, Node nameNode)
julesName - jules.types.Name which will be updated by adding the start and end informationnameNode - Node which contains the name start and endpublic void setValueMentionStartEnd(ValueMention valueMention, Node valueMentionNode)
valueMention - ValueMention which will be updated by adding the start and end informationvalueMentionNode - Node which contains start and end of the valuepublic void setRelationMentionStartEnd(RelationMention relationMention, Node relationMentionNode)
relationMention - ace.RelationMention which will be updated by adding the start and end informationrelationMentionNode - Node which contains start and end of the valuepublic void setRelationMentionArgumentStartEnd(RelationMentionArgument relationMentionArgument, Node relationMentionArgumentNode)
relationMentionArgument - ace.RelationMentionArgument which will be updated by adding the start and end informationrelationMentionArgumentNode - Node which contains start and end of the valuepublic void setEventMentiuonStartEnd(EventMention eventMention, Node eventMentionNode)
eventMention - ace.EventMention which will be updated by adding the start and end informationeventMentionNode - Node which contains start and end of the valuepublic void setEventMentionArgumentStartEnd(EventMentionArgument eventMentionArgument, Node eventMentionArgumentNode)
eventMentionArgument - ace.EventMentionArgument which will be updated by adding the start and end informationeventMentionArgumentNode - Node which contains start and end of the valuepublic int retrieveStartEndValue(Node node, String itemName)
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 retrievedpublic void setTimex2MentionStartEnd(Timex2Mention timex2Mention, Node timex2MentionNode)
timex2Mention - Timex2Mention which will be updated by adding the start and end informationtimex2MentionNode - Node which contains start and end of the valuepublic void setEventMentionAnchorStartEnd(Anchor eventMentionAnchor, Node anchorNode)
eventMentionAnchor - ace.Anchor which will be updated by adding the start and end informationanchorNode - Node which contains start and end of the valuepublic void setEventMentionLDCScopeStartEnd(LDC_Scope eventMentionLDCScope, Node LDCScopeNode)
eventMentionLDCScope - ace.LDC_Scope which will be updated by adding the start and end informationLDCScopeNode - Node which contains start and end of the valuepublic void setJulesNameName(Name julesName, Node nameNode)
julesName - jules.types.Name which attribute "name" will be updatednameNode - Node which attribute "NAME" will be parsed in order to retrieve its valuepublic org.apache.uima.jcas.cas.FSArray getEntityMentionFSArray(Node entityNode, Entity aceEntity, org.apache.uima.jcas.JCas jcas)
entityNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getTimex2MentionFSArray(Node timex2Node, org.apache.uima.jcas.JCas jcas)
timex2Node - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getRelationArgumentFSArray(Node relationNode, org.apache.uima.jcas.JCas jcas)
relationNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getEventArgumentFSArray(Node eventNode, org.apache.uima.jcas.JCas jcas)
eventNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getEventMentionFSArray(Node eventNode, Event aceEvent, org.apache.uima.jcas.JCas jcas)
eventNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getRelationMentionFSArray(Node relationNode, Relation aceRelation, org.apache.uima.jcas.JCas jcas)
relationNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getRelationMentionArgumentFSArray(Node relationMentionNode, org.apache.uima.jcas.JCas jcas)
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 relationMentionArgumentspublic org.apache.uima.jcas.cas.FSArray getEventMentionArgumentFSArray(Node eventMentionNode, org.apache.uima.jcas.JCas jcas)
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 eventMentionArgumentspublic void setEntityAttributes(Entity aceEntity, Node entityNode)
aceEntity - ace.Entity which will be updated by adding the attributes informationentityNode - Node which will be parsed in order to retrieve the attributespublic void setValueAttributes(Value aceValue, Node valueNode)
aceValue - ace.Value which will be updated by adding the attributes informationvalueNode - Node which will be parsed in order to retrieve the attributespublic void setRelationAttributes(Relation aceRelation, Node relationNode)
aceRelation - ace.Relation which will be updated by adding the attributes informationrelationNode - Node which will be parsed in order to retrieve the attributespublic void setEventAttributes(Event aceEvent, Node eventNode)
aceEvent - ace.Event which will be updated by adding the attributes informationeventNode - Node which will be parsed in order to retrieve the attributespublic void setTimex2Attributes(Timex2 aceTimex2, Node timex2Node)
aceTimex2 - ace.Timex2 which will be updated by adding the attributes informationtimex2Node - Node which will be parsed in order to retrieve the attributespublic void setTimex2MentionAttributes(Timex2Mention timex2Mention, Node timex2MentionNode)
public void setRelationMentionArgumentAttributes(RelationMentionArgument relationMentionArgument, Node relationMentionArgumentNode)
relationMentionArgument - ace.RelationMentionArgument which will be updated by adding the attributes informationrelationMentionArgumentNode - Node which will be parsed in order to retrieve the attributespublic void setEventMentionArgumentAttributes(EventMentionArgument eventMentionArgument, Node eventMentionArgumentNode)
eventMentionArgument - ace.EventMentionArgument which will be updated by adding the attributes informationeventMentionArgumentNode - Node which will be parsed in order to retrieve the attributespublic void setSourceFileAttributes(SourceFile aceSourceFile, Node sourceFileNode)
sourceFile - ace.SourceFile which will be updated by adding the attributes informationsourceFileNode - Node which will be parsed in order to retrieve the attributespublic void setEntityMentionAttributes(EntityMention entityMention, Node entityMentionNode)
entityMention - ace.EntityMention which will be updated by adding the attributes informationentityMentionNode - Node which will be parsed in order to retrieve the attributespublic void setRelationArgumentAttributes(RelationArgument relationArgument, Node relationArgumentNode)
relationArgument - ace.RelationArgument which will be updated by adding the attributes informationrelationArgumentNode - Node which will be parsed in order to retrieve the attributespublic void setEventArgumentAttributes(EventArgument eventArgument, Node eventArgumentNode)
eventArgument - ace.EventArgument which will be updated by adding the attributes informationeventArgumentNode - Node which will be parsed in order to retrieve the attributespublic void setEventMentionAttributes(EventMention eventMention, Node eventMentionNode)
eventMention - ace.EventMention which will be updated by adding the attributes informationeventMentionNode - Node which will be parsed in order to retrieve the attributespublic void setEventMentionAnchor(EventMention eventMention, Node eventMentionNode, org.apache.uima.jcas.JCas jcas)
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 informationpublic void setEventMentionLDCScope(EventMention eventMention, Node eventMentionNode, org.apache.uima.jcas.JCas jcas)
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 informationpublic void setRelationMentionAttributes(RelationMention relationMention, Node relationMentionNode)
relationMention - ace.RelationMention which will be updated by adding the attributes informationrelationMentionNode - Node which will be parsed in order to retrieve the attributespublic void setValueMentionAttributes(ValueMention valueMention, Node valueMentionNode)
valueMention - ace.ValueMention which will be updated by adding the attributes informationvalueMentionNode - Node which will be parsed in order to retrieve the attributespublic org.apache.uima.jcas.cas.FSArray getValueMentionFSArray(Node valueNode, org.apache.uima.jcas.JCas jcas)
valueNode - Node which will be processed in order to extract the proper information to fill the FSArrayjcas - JCas which will be filled with retrieved informationpublic void setEntityMentionHead(EntityMention entityMention, Node entityMentionNode, org.apache.uima.jcas.JCas jcas)
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 informationpublic void setEntityMentionStartEnd(EntityMention entityMention, Node entityMentionNode)
entityMention - jules.types.ace.EntityMention which will be updated by adding the start and end informationentityMentionNode - Node which contains the entity mention start and endpublic void getHeadInformation(Head entityMentionHead, Node entityMentionNode)
entityMentionHead - the jules.types.ace.Head which will be returned after retrieving information from the XML fileentityMentionNode - a Node which contain the head informationpublic ArrayList<Node> getSpecificNodeArrayList(NodeList children, String elementName)
children - NodeList from which specific nodes will be retrievedelementName - String which specifies the name of the nodes which will be retrieved from the NodeListpublic void addDocumentInformation(Node documentNode, Document aceDocument, org.apache.uima.jcas.JCas jcas)
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 informationpublic org.apache.uima.jcas.cas.FSArray getEntityFSArray(Node documentNode, org.apache.uima.jcas.JCas jcas)
documentNode - Node that will be parsed in order to retrieve entity informationjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getValueFSArray(Node documentNode, org.apache.uima.jcas.JCas jcas)
documentNode - Node that will be parsed in order to retrieve value informationjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getTimex2FSArray(Node documentNode, org.apache.uima.jcas.JCas jcas)
documentNode - Node that will be parsed in order to retrieve value informationjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getRelationFSArray(Node documentNode, org.apache.uima.jcas.JCas jcas)
documentNode - Node that will be parsed in order to retrieve value informationjcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getEventFSArray(Node documentNode, org.apache.uima.jcas.JCas jcas)
documentNode - Node that will be parsed in order to retrieve value informationjcas - JCas which will be filled with retrieved informationpublic void addSourceFileInformation(Document domDocument, org.apache.uima.jcas.JCas jcas)
domDocument - the Document which contains the parsed information from the XML filejcas - JCas which will be filled with retrieved informationpublic org.apache.uima.jcas.cas.FSArray getDocumentFSArray(Node sourceFileNode, org.apache.uima.jcas.JCas jcas)
domDocument - Document which will be parsed in order to retrieve aceDocument informationjcas - JCas which will be filled with retrieved informationpublic void initialize()
initialize in class org.apache.uima.collection.CollectionReader_ImplBasepublic void close()
throws IOException
IOExceptionpublic org.apache.uima.util.Progress[] getProgress()
public boolean hasNext()
throws IOException,
org.apache.uima.collection.CollectionException
IOExceptionorg.apache.uima.collection.CollectionExceptionBaseCollectionReader.hasNext()Copyright © 2015 JULIE Lab Jena, Germany. All rights reserved.