Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 5, 2017

Conversation

drusepth
Copy link
Contributor

@drusepth drusepth commented Jun 3, 2016

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

@flyforsuresky
Copy link

flyforsuresky commented Jan 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants