(self, symbol=None, entity_copy=None, utterance_copy=None)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected