Mary arrived while Eric was taking a shower. He had been sleeping for the whole afternoon.
where:
arrived tense="PAST"
aspect="NONE"
was taking tense="PAST"
aspect="PROGRESSIVE"
had been sleeping tense="PAST"
aspect="PERFECTIVE_PROGRESSIVE"
relType
in TimeML TLINKS:BEFORE
AFTER
INCLUDES
IS_INCLUDED
DURING
SIMULTANEOUS
IAFTER
IBEFORE
IDENTITY
BEGINS
ENDS
BEGUN_BY
ENDED_BY
minidom
,
the basic DOM parsing system, or pulldom
, a more complete
one. The import comand is: from xml.dom.minidom import parser
from xml.dom.pulldom import parser
/usr/lib/python2.2
when working from the machines in the Berry patch. You can test it by typing: echo $PYTHONPATH
echo 'setenv PYTHONPATH "/usr/
lib/python2.2:\${PYTHONPATH}"' >> ~/.cshrc
source ~/.cshrc
If you are planning to work with another language, make sure that you provide us with all the information necessary to run your piece of code (including problems due to path assignment issues).
echo 'export PYTHONPATH="/usr/lib/python2.2:${PYTHONPATH}"' >> ~/.bashrc
source ~/.bashrc
.xml
), which will contain no TLINKs,
and return it with the appropriate TLINKs introduced (extension .tml
.xml
).
To run it from python, the command should be equal or equivalent to:python temporalOrder.py input_file.xml
lid ::= ID
{lid ::= LinkID
LinkID ::= l<integer>}
eventInstanceID ::= IDREF
{eventInstanceID ::= EventInstanceID}
timeID ::= IDREF
{timeID ::= TimeID}
signalID ::= IDREF
{signalID ::= SignalID}
relatedToEventInstance ::= IDREF
{relatedToEventInstance ::= EventInstanceID}
relatedToTime ::= IDREF
{relatedToTime ::= TimeID}
relType ::= 'BEFORE' | 'AFTER' | 'INCLUDES' | 'IS_INCLUDED' | 'DURING' |
'SIMULTANEOUS' | 'IAFTER' | 'IBEFORE' | 'IDENTITY' |
'BEGINS' | 'ENDS' | 'BEGUN_BY' | 'ENDED_BY'
Also, check that your output file is XML well-formed. For that
purpose trying to open it using Explorer or Mozilla should be enough.