concepts.language.neural_ccg.grammar.NeuralCCGSemanticsPartialTypeLex#

class NeuralCCGSemanticsPartialTypeLex[source]#

Bases: object

A data structure that will be used in representing the semantic type of a partially applied function.

Methods

Attributes

candidate_lexicon_index

The index of the candidate lexicon entry.

word_index

The index of the word in the sentence.

__init__(candidate_lexicon_index, word_index)#
Parameters:
  • candidate_lexicon_index (int)

  • word_index (int | None)

Return type:

None

__new__(**kwargs)#
candidate_lexicon_index: int#

The index of the candidate lexicon entry.

word_index: int | None#

The index of the word in the sentence. This will only be set if the lexicon entry contains constants.