| 26 | |
| 27 | @attr.s |
| 28 | class 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 |
no outgoing calls
no test coverage detected