Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run cui2vec-converter.py #1

Closed
allieonpoppyfield opened this issue Jan 17, 2019 · 2 comments
Closed

Cannot run cui2vec-converter.py #1

allieonpoppyfield opened this issue Jan 17, 2019 · 2 comments

Comments

@allieonpoppyfield
Copy link

Traceback (most recent call last):
File "C:\asd\sytora\cui2vec-converter.py", line 6, in
cui_vecs_df = pd.read_csv('./cui2vec_pretrained.csv')
File "C:\Users\Администратор\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\io\parsers.py", line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\Users\Администратор\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\io\parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\Администратор\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\io\parsers.py", line 787, in init
self._make_engine(self.engine)
File "C:\Users\Администратор\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\io\parsers.py", line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\Users\Администратор\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\io\parsers.py", line 1708, in init
self._reader = parsers.TextReader(src, **kwds)
File "pandas_libs\parsers.pyx", line 384, in pandas._libs.parsers.TextReader.cinit
File "pandas_libs\parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: File b'./cui2vec_pretrained.csv' does not exist

@leanderme
Copy link
Owner

The last line gives you the answer already, ./cui2vec_pretrained.csv' does not exist. You need to get the pretrained embeddings first, available here: https://figshare.com/s/00d69861786cd0156d81. Place them in the data folder.

@allieonpoppyfield
Copy link
Author

The last line gives you the answer already, ./cui2vec_pretrained.csv' does not exist. You need to get the pretrained embeddings first, available here: https://figshare.com/s/00d69861786cd0156d81. Place them in the data folder.

its doesnt work if i place them the "data" folder. but placing them in root folder solved my proplem< thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants