web64 / nlpserver

NLP Web Service
MIT License
93 stars 26 forks source link

Not able to pull polyglot files #1

Open rupesh-terase opened 5 years ago

rupesh-terase commented 5 years ago

polyglot download LANG:en tellusererror POLYGLOT: main(): Can't open config file "polyglot.ini": No such file or directory

OR polyglot tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

I made polyglot.ini file in root directory and run command which give me following error

tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

polyglot.ini file

[PolyGlot]

EngineDir = .
EngineCommand = ../nlpserver

Book = false
BookFile = book.bin

Log = false
LogFile = nlpserver.log

Resign = true
ResignScore = 600

[Engine]

Write Debug Log = false
Write Search Log = false
Search Log Filename = SearchLog.txt
Book File = book.bin
Best Book Move = false
Contempt Factor = 0
Mobility (Midgame) = 100
Mobility (Endgame) = 100
Pawn Structure (Midgame) = 100
Pawn Structure (Endgame) = 100
Passed Pawns (Midgame) = 100
Passed Pawns (Endgame) = 100
Space = 100
King Safety = 100
Min Split Depth = 0
Threads = 1
Hash = 128
Ponder = true
OwnBook = false
MultiPV = 1
Skill Level = 20
Emergency Move Horizon = 40
Emergency Base Time = 200
Emergency Move Time = 70
Minimum Thinking Time = 20
Slow Mover = 100
UCI_Chess960 = false

Help plz!

adna9 commented 5 years ago

facing same issue

duke199 commented 5 years ago

Help me add 14 line in nlpserver.py you project:

app.config['JSON_AS_ASCII'] = False

The line will give the Server opportunity worked with any Languages.

duke199 commented 5 years ago

polyglot download LANG:en tellusererror POLYGLOT: main(): Can't open config file "polyglot.ini": No such file or directory

OR polyglot tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

I made polyglot.ini file in root directory and run command which give me following error

tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

polyglot.ini file

[PolyGlot]

EngineDir = .
EngineCommand = ../nlpserver

Book = false
BookFile = book.bin

Log = false
LogFile = nlpserver.log

Resign = true
ResignScore = 600

[Engine]

Write Debug Log = false
Write Search Log = false
Search Log Filename = SearchLog.txt
Book File = book.bin
Best Book Move = false
Contempt Factor = 0
Mobility (Midgame) = 100
Mobility (Endgame) = 100
Pawn Structure (Midgame) = 100
Pawn Structure (Endgame) = 100
Passed Pawns (Midgame) = 100
Passed Pawns (Endgame) = 100
Space = 100
King Safety = 100
Min Split Depth = 0
Threads = 1
Hash = 128
Ponder = true
OwnBook = false
MultiPV = 1
Skill Level = 20
Emergency Move Horizon = 40
Emergency Base Time = 200
Emergency Move Time = 70
Minimum Thinking Time = 20
Slow Mover = 100
UCI_Chess960 = false

Help plz!

I too can't do it. But i find decision.

You need install pip3 and pip. i.e. python-pip python3-pip

After you must do pip install polyglot pip3install polyglot

and only then

polyglot download LANG=en

Also try in Server LTS Ubuntu 18.04 (in Ubuntu 16.04 - don't worked ...):

git clone https://github.com/web64/nlpserver.git cd nlpserver

apt install pkg-config apt-get install -y libicu-dev python3-pip apt-get install -y python-pip apt-get install -y python-numpy pip3 install pyicu pip3 install numpy pip3 install Flask pip install polyglot pip3 install polyglot pip3 install morfessor pip3 install langid pip3 install newspaper3k pip3 install pycld2 pip3 install gensim pip3 install -U spacy pip3 install readability-lxml pip3 install BeautifulSoup4 pip3 install afinn pip3 install textblob

polyglot download LANG:en polyglot download LANG:ru

In the file nlpserver.py you must adding 14 line "app.config['JSON_AS_ASCII'] = False" and reboot you computer :)

duke199 commented 5 years ago

Hello, developments! The server is beautifull! I would like to ask you to add term search in a text frome http, https. Thank you!

safciplak commented 5 years ago

In the file nlpserver.py you must adding 14 line "app.config['JSON_AS_ASCII'] = False" and reboot you computer :)

Thank you so much, lots of love, I reboot the system. It'll be working fine now.

ottsch commented 4 years ago

Solution for me: Don't run sudo apt-get install polyglot, this is something else.

ve2gmr commented 3 years ago

Solution for me: Don't run sudo apt-get install polyglot, this is something else.

This installs a different polyglot library.

The documentation needs to be updated to specify: python3 -m polyglot download LANG:en