swisscom / ai-research-keyphrase-extraction

EmbedRank: Unsupervised Keyphrase Extraction using Sentence Embeddings (official implementation)
Apache License 2.0
432 stars 88 forks source link

Installation on Anaconda #13

Closed jordanlmx closed 5 years ago

jordanlmx commented 5 years ago

Hi I face problem when I try to install it with anaconda prompt and I am quite not understand what is write in the README.md, for example:

Install sent2vec from https://github.com/epfml/sent2vec

Clone/Download the directory
go to sent2vec directory
git checkout f827d014a473aa22b2fef28d9e29211d50808d48
make
pip install cython
inside the src folder
python setup.py build_ext
pip install .

how should I do with this part? Any useful suggestion is appreciate. Thank you.

jordanlmx commented 5 years ago

hi i have solve until following part

inside the src folder
python setup.py build_ext
pip install .

it give me this error


(base) C:\Users\jorda\sent2vec\src>python setup.py build_ext
Compiling sent2vec.pyx because it changed.
[1/1] Cythonizing sent2vec.pyx
running build_ext
building 'sent2vec' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\jorda\Anaconda3\lib\site-packages\numpy\core\include -IC:\Users\jorda\Anaconda3\include -IC:\Users\jorda\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpsent2vec.cpp /Fobuild\temp.win-amd64-3.7\Release\sent2vec.obj -std=c++0x -Wno-cpp -pthread -Wno-sign-compare
cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

any help is appreciate thank you

kamilbs commented 5 years ago

Hi I don't think sent2vec (which rely on fasttext library) supports Windows but there is maybe a fix to make it work on a windows machine. Here is the official repository of sent2vec https://github.com/epfml/sent2vec where you'll certainly find some help :)

jordanlmx commented 5 years ago

Thanks for your help