leanderme / sytora

A sophisticated smart symptom search engine
http://sytora.com
174 stars 91 forks source link

Cannot run cui2vec-converter.py #1

Closed allieonpoppyfield closed 5 years ago

allieonpoppyfield commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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