louismullie / treat

Natural language processing framework for Ruby.
Other
1.37k stars 128 forks source link

Use S3's static-public-assets bucket instead of louismullie.com #120

Closed drusepth closed 7 years ago

drusepth commented 8 years ago

Also includes whitespace stripping. Using ?w=1 in the PR URL will omit whitespace-only changes.

flyforsuresky commented 3 years ago

I am not sure whether this is still a valid open issue.I just did the below workaround to overcome this . @drusepth @louismullie @dalton

1.Wrote a python gist to convert pickle to yaml

import pickle from sys import argv import yaml import os scores = {} # scores is an empty dict already if os.path.getsize(argv[1]) > 0:
with open(argv[1], "rb") as f: unpickler = pickle.Unpickler(f)

if file is not empty scores will be equal

to the value unpickled

scores = unpickler.load() print(yaml.dump(scores))

  1. put this yaml,stanford-core-nlp-all.zip to another local server public folder (say localhost:3000 public folder) like below... % tree public/treat public/treat ├── punkt │   └── english.yaml └── stanford-core-nlp-all.zip 3.kick start the another rails web server and Change the treat reference to localhost:3000 in installer.rb 4.Ran the installer as Treat::Core::Installer.install