File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 20, in get
value = obj.dict[self.func.name] = self.func(obj)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\text.py", line 135, in entities
for i, (w, tag) in enumerate(self.ne_chunker.annotate(self.words)):
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 20, in get
value = obj.dict[self.func.name] = self.func(obj)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\text.py", line 103, in ne_chunker
return get_ner_tagger(lang=self.language.code)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 30, in memoizer
cache[key] = obj(*args, *kwargs)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 191, in get_ner_tagger
return NEChunker(lang=lang)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 104, in init
super(NEChunker, self).init(lang=lang)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 40, in init
self.predictor = self._load_network()
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 110, in _load_network
self.model = load_ner_model(lang=self.lang, version=2)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 30, in memoizer
cache[key] = obj(args, **kwargs)
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\load.py", line 100, in load_ner_model
return pickle.load(fh)
TypeError: a bytes-like object is required, not 'str'
File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 20, in get value = obj.dict[self.func.name] = self.func(obj) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\text.py", line 135, in entities for i, (w, tag) in enumerate(self.ne_chunker.annotate(self.words)): File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 20, in get value = obj.dict[self.func.name] = self.func(obj) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\text.py", line 103, in ne_chunker return get_ner_tagger(lang=self.language.code) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 30, in memoizer cache[key] = obj(*args, *kwargs) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 191, in get_ner_tagger return NEChunker(lang=lang) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 104, in init super(NEChunker, self).init(lang=lang) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 40, in init self.predictor = self._load_network() File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\tag\base.py", line 110, in _load_network self.model = load_ner_model(lang=self.lang, version=2) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\decorators.py", line 30, in memoizer cache[key] = obj(args, **kwargs) File "C:\Users\vanminh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\polyglot-16.7.4-py3.6.egg\polyglot\load.py", line 100, in load_ner_model return pickle.load(fh) TypeError: a bytes-like object is required, not 'str'