RyanSelesnik / AI-Toy

0 stars 0 forks source link

Handle key error for math game #46

Open RyanSelesnik opened 1 year ago

RyanSelesnik commented 1 year ago
 int_lookup_dict = {"one": 1, "two": 2, "three": 3, "four": 4,
KeyError: '2.u'

Solution

Use RegexEntityExtractor for numerical numbers and DIET for textual numbers