MCPcopy Create free account
hub / github.com/google-research/language / __init__

Method __init__

language/xsp/data_preprocessing/sql_utils.py:108–115  ·  view source on GitHub ↗
(self, symbol=None, entity_copy=None, utterance_copy=None)

Source from the content-addressed store, hash-verified

106 """Describes a single generation action for a SQL query."""
107
108 def __init__(self, symbol=None, entity_copy=None, utterance_copy=None):
109 # Make sure only one of the things are set.
110 assert len([obj for obj in [symbol, entity_copy, utterance_copy] if obj
111 ]) <= 1
112
113 self.symbol = symbol
114 self.entity_copy = entity_copy
115 self.utterance_copy = utterance_copy
116
117 def to_json(self):
118 if self.symbol:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected