index
module components.common_modules.tags
AlinkTag
EventTag
LinkTag
SlinkTag
Tag
TimexTag
TlinkTag
tags.py
Contains classes for TimeML tags.
class AlinkTag
Inherits from: LinkTag
Public Functions
__init__(self, attrs)
class EventTag
Inherits from: Tag
Class for TimeML EVENT tags.
Public Functions
__init__(self, attrs)
__str__(self)
feature_value(self, name)
isEvent(self)
pretty_print(self, indent=0)
Private Functions
_get_attribute(self, name, default)
class LinkTag
Inherits from: object
Abstract class for all TimeML link tags. LinkTags are not constituents
since they are never inserted in the hierarchical structure of a TarsqiTree,
but they are added to lists of links in alink_list, slink_list and
tlink_list.
Instance variables
name - a string ('ALINK', 'SLINK' or 'TLINK')
attrs - a dictionary of attributes
Public Functions
__init__(self, name, attrs)
Initialize name and attributes.
__str__(self)
eiid1(self)
Return the eiid of the first event in the relation.
eiid2(self)
Return the eiid of the second event in the relation.
rel(self)
class SlinkTag
Inherits from: LinkTag
Public Functions
__init__(self, attrs)
eiid2(self)
Return the eiid of the second event in the relation.
class Tag
Inherits from: Constituent
Abstract class for all TimeML non-link tags.
Public Functions
createEvent(self, imported_events=None)
Do nothing when an EventTag or TimexTag is asked to create an
event. Without this method the method with the same name on Constituent
would log a warning.
class TimexTag
Inherits from: Tag
Public Functions
__init__(self, attrs)
__str__(self)
feature_value(self, name)
isTimex(self)
pretty_print(self, indent=0)
class TlinkTag
Inherits from: LinkTag
Public Functions
__init__(self, attrs)