Package jazzparser :: Package formalisms :: Package base :: Package semantics :: Module temporal
[hide private]
[frames] | no frames]

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>

Classes [hide private]
  Temporal
Adds temporal information to a logical form.
  TemporalSemantics
Adds temporal semantics to the Semantics root class.
  TempralError
Functions [hide private]
 
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
 
earliest_time(times)
Simple utility to pick the earliest of a list of times (which may include Nones).
source code
Variables [hide private]
  logger = logging.getLogger("main_logger")
  __package__ = 'jazzparser.formalisms.base.semantics'
Function Details [hide private]

temporal_rule_apply(semantics_only=False)

source code 

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)

temporal_comp_apply(semantics_only=False)

source code 

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)

temporal_app_apply(semantics_only=False)

source code 

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)

earliest_time(times)

source code 

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.