You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ipython-input-108-242465236c9f> in <module>
1 en_word = "unicorn"
2 print(en_word)
----> 3 en2th(en_word)
/usr/local/lib/python3.6/site-packages/word2word/word2word.py in __call__(self, query, n_best)
10 print("Sorry. There's no such word in the dictionary.")
11 x = self.word2x[query]
---> 12 ys = self.x2ys[x]
13 words = [self.y2word[y] for y in ys]
14 return words[:n_best]
KeyError: 10130```
The word 'unicorn' exists in "word2x" dict but not in "x2ys" dict.
The text was updated successfully, but these errors were encountered:
pamin2222
changed the title
[EN-TH] Some words are missing from x2ys dict
[Word2Word][EN-TH] Some words are missing from x2ys dict
Apr 12, 2019
The text was updated successfully, but these errors were encountered: