Traceback (most recent call last):
File "build_vocab.py", line 1, in
import nltk
File "/anaconda3/lib/python3.6/site-packages/nltk/init.py", line 128, in
from nltk.chunk import *
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/init.py", line 157, in
from nltk.chunk.api import ChunkParserI
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/api.py", line 15, in
from nltk.chunk.util import ChunkScore
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/util.py", line 13, in
from nltk.tag.mapping import map_tag
File "/anaconda3/lib/python3.6/site-packages/nltk/tag/init.py", line 70, in
from nltk.tag.sequential import (SequentialBackoffTagger, ContextTagger,
File "/anaconda3/lib/python3.6/site-packages/nltk/tag/sequential.py", line 26, in
from nltk.classify import NaiveBayesClassifier
File "/anaconda3/lib/python3.6/site-packages/nltk/classify/init.py", line 98, in
from nltk.classify.textcat import TextCat
File "/anaconda3/lib/python3.6/site-packages/nltk/classify/textcat.py", line 47, in
import regex as re
File "/anaconda3/lib/python3.6/site-packages/regex.py", line 683, in
_pattern_type = type(_compile("", 0, {}))
File "/anaconda3/lib/python3.6/site-packages/regex.py", line 436, in _compile
pattern_locale = _getlocale()[1]
File "/anaconda3/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/anaconda3/lib/python3.6/locale.py", line 490, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8
Traceback (most recent call last): File "build_vocab.py", line 1, in
import nltk
File "/anaconda3/lib/python3.6/site-packages/nltk/init.py", line 128, in
from nltk.chunk import *
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/init.py", line 157, in
from nltk.chunk.api import ChunkParserI
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/api.py", line 15, in
from nltk.chunk.util import ChunkScore
File "/anaconda3/lib/python3.6/site-packages/nltk/chunk/util.py", line 13, in
from nltk.tag.mapping import map_tag
File "/anaconda3/lib/python3.6/site-packages/nltk/tag/init.py", line 70, in
from nltk.tag.sequential import (SequentialBackoffTagger, ContextTagger,
File "/anaconda3/lib/python3.6/site-packages/nltk/tag/sequential.py", line 26, in
from nltk.classify import NaiveBayesClassifier
File "/anaconda3/lib/python3.6/site-packages/nltk/classify/init.py", line 98, in
from nltk.classify.textcat import TextCat
File "/anaconda3/lib/python3.6/site-packages/nltk/classify/textcat.py", line 47, in
import regex as re
File "/anaconda3/lib/python3.6/site-packages/regex.py", line 683, in
_pattern_type = type(_compile("", 0, {}))
File "/anaconda3/lib/python3.6/site-packages/regex.py", line 436, in _compile
pattern_locale = _getlocale()[1]
File "/anaconda3/lib/python3.6/locale.py", line 581, in getlocale
return _parse_localename(localename)
File "/anaconda3/lib/python3.6/locale.py", line 490, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8