index
module components.gutime.wrapper
GUTimeWrapper
Contains the GUTime wrapper.

The wrapper takes all sentences in the TarsqiDocument and creates the input
needed by TimeTag.pl, which is the wrapper around TempEx.pm.

The input required by TimeTag.pl looks as follows:

   <DOC>
   <DATE>20120912</DATE>
   <s>
      <lex id=1 pos="NNP">Monday</lex>
      <lex id=2 pos="NN">morning</lex>
      <lex id=3>and</lex>
      <lex id=4>today</lex>
   </s>
   </DOC>

The DOC root is required and so is the DATE tag. Otherwise, only s and lex tags
are allowed. Any kind of spacing between the tags is allowed.

Note that the directory that this wrapper is in has two unused files: gutime.pl
and postTempEx.pl. Much of the functionality in those files is either in this
wrapper or obsolete. They are kept around for reference, mostly for the language
on temporal functions in postTempEx.pl.
class GUTimeWrapper
Inherits from: object

Wrapper for GUTime.

Public Functions

__init__(self, document)
process(self)
process_using_files(self)
Create the input required by TimeTag.pl, call the Perl script and collect the TIMEX3 tags.
process_using_string(self)
Create the input required by TimeTag.pl, call the Perl script and collect the TIMEX3 tags.
module functions