concepts.language.ccg.semantics.CCGSemanticsLazyValue#

class CCGSemanticsLazyValue[source]#

Bases: object

A wrapper that represents the semantic form of a node that is not yet evaluated. Specifically, this function stores the composition type and the individual components.

Methods

execute()

Execute the lazy value recursively and return the semantic form.

Attributes

composition_type

The composition type.

conj

The conjunction function (optional).

lhs

The left-hand side semantics.

rhs

The right-hand side semantics.

__init__(composition_type=None, lhs=None, rhs=None, conj=None)#
Parameters:
Return type:

None

__new__(**kwargs)#
execute()[source]#

Execute the lazy value recursively and return the semantic form.

Return type:

Value | Function

composition_type: CCGCompositionType | None = None#

The composition type.

conj: Callable | None = None#

The conjunction function (optional).

lhs: CCGSemantics | CCGSemanticsLazyValue | None = None#

The left-hand side semantics.

rhs: CCGSemantics | CCGSemanticsLazyValue | None = None#

The right-hand side semantics.