Skip to content

Commit

Permalink
Merge pull request #1783 from demongolem/master
Browse files Browse the repository at this point in the history
Issue #1781.  Resolving UnicodeError for Windows and Lookup Tables via file method
  • Loading branch information
paulaWesselmann committed Mar 18, 2019
2 parents 2486052 + 44027a1 commit 560e46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa_nlu/featurizers/regex_featurizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _generate_lookup_regex(self, lookup_table):
else:

try:
f = io.open(lookup_elements, 'r')
f = io.open(lookup_elements, 'r', encoding='utf-8')
except IOError:
raise ValueError("Could not load lookup table {}"
"Make sure you've provided the correct path"
Expand Down

0 comments on commit 560e46f

Please sign in to comment.