Reading the cat sat on the mat because it was tired, the word it has to work out which word it means. Each word has a key: two numbers for how much it’s an animal and how much it’s a place. it has a query: what it’s looking for. Write listen(query, keys): how much “it” listens to each word, as shares.
Each word’s key is [animal, place]. “it” looks for [1, 0], an animal. It has 100% of its attention to share out among cat, sat and mat: how much should each get?
listen(query, keys)| query | what "it" is looking for, [animal, place] | e.g. [1, 0] |
| keys | one row per word, what each word is, [animal, place] | e.g. [[2, 0], [0, 0], [0, 2]] |
| returns | one share per word: how much "it" listens to it | |