Module temporal
source code
Temporal additions to basic lambda calculus semantics.
Many formalisms will store temporal information along with their
logical forms. This module provides the basic stuff that's needed to add
temporal information to a semantics.
Note that this is completely separate from the lambda calculus base
classes, so they may be used without temporal information.
Author:
Mark Granroth-Wilding <mark.granroth-wilding@ed.ac.uk>
|
|
temporal_rule_apply(semantics_only=False)
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics. |
source code
|
|
|
|
temporal_comp_apply(semantics_only=False)
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics. |
source code
|
|
|
|
temporal_app_apply(semantics_only=False)
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics. |
source code
|
|
|
|
|
|
|
logger = logging.getLogger("main_logger")
|
|
|
__package__ = 'jazzparser.formalisms.base.semantics'
|
|
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics.
- Parameters:
semantics_only (bool) - if True, assumes this is an apply_rule_semantics(), so the
results will be logical forms only (not signs)
|
|
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics.
- Parameters:
semantics_only (bool) - if True, assumes this is an apply_rule_semantics(), so the
results will be logical forms only (not signs)
|
|
A generic decorator to wrap any rule application to perform the time
assignment manipulation of the semantics.
- Parameters:
semantics_only (bool) - if True, assumes this is an apply_rule_semantics(), so the
results will be logical forms only (not signs)
|
|
Simple utility to pick the earliest of a list of times (which may
include Nones).
Will return None if there are no times that aren't None.
|