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

Class SpiderEncoderState

rat-sql-gap/seq2struct/models/spider/spider_enc.py:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27@attr.s
28class SpiderEncoderState:
29 state = attr.ib()
30 memory = attr.ib()
31 question_memory = attr.ib()
32 schema_memory = attr.ib()
33 words = attr.ib()
34
35 pointer_memories = attr.ib()
36 pointer_maps = attr.ib()
37
38 m2c_align_mat = attr.ib()
39 m2t_align_mat = attr.ib()
40
41 def find_word_occurrences(self, word):
42 return [i for i, w in enumerate(self.words) if w == word]
43
44
45@attr.s

Callers 4

forward_unbatchedMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected