crownpku / Awesome-Chinese-NLP

A curated list of resources for Chinese NLP 中文自然语言处理相关资料
Apache License 2.0
7.78k stars 1.71k forks source link

polyglot_data on windows #14

Open Seymour0724 opened 2 years ago

Seymour0724 commented 2 years ago

Hi, I Have installed polyglot on windows10 with python 3.9, after some lib problems solved, I start getting this error:

downloader.download() Polyglot Downloader


Collections: Traceback (most recent call last): File "", line 1, in File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 649, in download self._interactive_download() File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 1068, in _interactive_download DownloaderShell(self).run() File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 1096, in run more_prompt=True) File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 459, in list for info in sorted(getattr(self, category)(), key=str): File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 495, in collections self._update_index() File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 832, in _update_index P = Package.fromcsobj(p) File "C:\Python34\lib\site-packages\polyglot-15.5.2-py3.4.egg\polyglot\downloader.py", line 232, in fromcsobj language = subdir.split(path.sep)[1] IndexError: list index out of range