concepts.language.ccg.semantics.CCGSemanticsSugar#

class CCGSemanticsSugar[source]#

Bases: object

A syntax sugar that allows users to write CCG semantics in a more natural way. This class is initialized in the CCG class.

Methods

Attributes

domain

The underlying function domain.

__getitem__(item)[source]#

Create a CCGSemantics instance from a function or a value.

Parameters:

item (Value | Function | ConstantExpression | FunctionApplicationExpression | Callable | Tuple[Callable, Dict] | None)

Return type:

CCGSemantics

__init__(domain)[source]#

Initialize the syntax sugar.

Parameters:

domain (FunctionDomain) – the function domain.

__new__(**kwargs)#
domain: FunctionDomain#

The underlying function domain.