MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / save

Method save

rat-sql-gap/seq2struct/utils/vocab.py:81–83  ·  view source on GitHub ↗
(self, out_path)

Source from the content-addressed store, hash-verified

79 return Vocab(json.load(open(in_path)), special_elems=())
80
81 def save(self, out_path):
82 with open(out_path, 'w') as f:
83 json.dump([self.id_to_elem[i] for i in range(len(self.id_to_elem))], f)
84
85
86class VocabBuilder:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected