treat icon indicating copy to clipboard operation
treat copied to clipboard

Install language pack failed

Open younthu opened this issue 8 years ago • 16 comments

I tried to install english pack,


Treat::Core::Installer.install 'english'

failed with errors below:

3. Downloading models for the Punkt segmenter for the English language.

RuntimeError: Couldn't download http://www.louismullie.com/treat/punkt/english.yaml (Max number of attempts reached). Error: (Operation timed out - connect(2) for "www.louismullie.com" port 80)

Does anyone has the same issue? It seems the language package host is down now, anyone can help on this please?

Is there anyway for manual installation of those language packages?

younthu avatar Dec 22 '15 02:12 younthu

I am having the same issue. I would love to see/assist in a solution for this. :+1:

Edit: I am using ruby 2.2.1

naltun avatar Dec 24 '15 14:12 naltun

I do see it too. I have Ruby version 2.1.5p273

cherniv avatar Jan 25 '16 11:01 cherniv

Similar on the stanford-core-nlp-all.zip and all the JAR links: http://louismullie.com/treat/stanford-core-nlp-minimal.zip and http://louismullie.com/treat/stanford-core-nlp-english.zip and http://louismullie.com/treat/stanford-core-nlp-all.zip

  1. Download Stanford Core NLP JARs and model files for the the English language.

RuntimeError: Couldn't download http://www.louismullie.com/treat/stanford-core-nlp-all.zip (Max number of attempts reached). Error: (getaddrinfo: nodename nor servname provided, or not known)

markoblad avatar Feb 13 '16 21:02 markoblad

Still getting this error. Unable to install on Ubuntu 14.04 and ruby 2.2.3

The whole website http://louismullie.com seems to be offline

pawandubey avatar Feb 27 '16 19:02 pawandubey

Same for me:

RuntimeError: Couldn't download http://www.louismullie.com/treat/punkt/english.yaml (Max number of attempts reached). Error: (Response code was not 200 , but 502.)

cunger avatar Mar 10 '16 16:03 cunger

For me as well. www.louismullie.com is down entirely. Is there an alternate location to download the required files manually?

Levenade avatar Mar 10 '16 21:03 Levenade

Navigate to ~/.rvm/gems/ruby-X.Y.Z/gems/treat-A.B.C/lib/treat/core/installer.rb

And change line 8 from:

Server = 'www.louismullie.com'

to:

Server = 's3.amazonaws.com/static-public-assets'

garside avatar Mar 10 '16 21:03 garside

Is there any chance someone has the Reuters models too? Those files are also on www.louismullie.com and that website is down.

NickLamping avatar Mar 14 '16 00:03 NickLamping

The server that was holding the files suffered a total loss of data, and I have no backup. As shown by how old this thread is, I have no time to fix this issue either.

If one of you can fix up a package containing the right files and send a link by e-mail I promise to upload it to the new server.

louismullie avatar Mar 16 '16 01:03 louismullie

@louismullie Thanks, man! :+1: Good guy, Louis.

naltun avatar Mar 18 '16 03:03 naltun

I changed the server to aws but i still can't download the spanish language, is there a way i can do this manually?

delgiudices avatar Mar 31 '16 15:03 delgiudices

Is there any workaround like the above to get this gem working again on apps running on Heroku?

drusepth avatar May 22 '16 15:05 drusepth

I don't have an answer for the previous commenter but for posterity's sake I'm going to leave a link to a JavaScript library that you can actually use and contains many of the features that this gem once had.

NLP Compromise

NickLamping avatar May 23 '16 03:05 NickLamping

To answer my above question, I went ahead and just forked treat and made @garside's change in the gem itself. You can use the modified version of the gem that uses his mirrors by changing the Gemfile to point at that forked git repo, with

gem 'treat', :git => 'https://github.com/indentlabs/treat-gem.git'

drusepth avatar May 24 '16 18:05 drusepth

@drusepth I keep getting this error:

RuntimeError: Couldn't download http://s3.amazonaws.com/static-public-assets/treat/punkt/english.yaml (Max number of attempts reached). Error: (wrong number of arguments (given 2, expected 0))
	from /home/rotten/.rvm/gems/ruby-2.3.1/gems/schiphol-1.0.1/lib/schiphol.rb:141:in `rescue in download'
	from /home/rotten/.rvm/gems/ruby-2.3.1/gems/schiphol-1.0.1/lib/schiphol.rb:150:in `download'
	from /home/rotten/.rvm/gems/ruby-2.3.1/gems/treat-2.1.0/lib/treat/core/installer.rb:149:in `download_punkt_models'
	from /home/rotten/.rvm/gems/ruby-2.3.1/gems/treat-2.1.0/lib/treat/core/installer.rb:55:in `install'
	from (irb):26

philhartmanonic avatar Jan 18 '17 21:01 philhartmanonic

see https://github.com/louismullie/treat/issues/124

psychoslave avatar Jul 26 '17 14:07 psychoslave