concepts.language.neural_ccg.grammar.LinearizationTuple#

class LinearizationTuple[source]#

Bases: object

A pair of (index, direction) for representing linearization of function arguments.

Methods

Attributes

index

The index of the argument.

direction

The direction of the linearization (left or right).

__init__(index, direction)#
Parameters:
Return type:

None

__new__(**kwargs)#
direction: CCGCompositionDirection#

The direction of the linearization (left or right).

index: int#

The index of the argument.