Git Product home page Git Product logo

pytorch-nli's Issues

OSError when training

Hi
I want to train a basic NLI model, for I followed the README and just change the dataset into "multinli".
Here is my command
"python train.py --dataset=multinli --model=bilstm"
However, the error message appeared
"Traceback (most recent call last):
File "train.py", line 99, in
task = Train()
File "train.py", line 29, in init
self.dataset = datasets.dictself.args.dataset
File "/net/setagaya/disk6/ztc/nlifile/pytorch-nli/datasets/multinli.py", line 30, in multinli
return MultiNLI(options)
File "/net/setagaya/disk6/ztc/nlifile/pytorch-nli/datasets/multinli.py", line 12, in init
self.inputs = data.Field(lower=True, tokenize='spacy', batch_first = True)
File "/home/ztc/centos6/pyenv/pyenv/versions/3.6.2/lib/python3.6/site-packages/torchtext/data/field.py", line 163, in init
self.tokenize = get_tokenizer(tokenize, tokenizer_language)
File "/home/ztc/centos6/pyenv/pyenv/versions/3.6.2/lib/python3.6/site-packages/torchtext/data/utils.py", line 114, in get_tokenizer
spacy = spacy.load(language)
File "/home/ztc/centos6/pyenv/pyenv/versions/3.6.2/lib/python3.6/site-packages/spacy/init.py", line 30, in load
return util.load_model(name, **overrides)
File "/home/ztc/centos6/pyenv/pyenv/versions/3.6.2/lib/python3.6/site-packages/spacy/util.py", line 169, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory."

How can I solve it?
Thank you in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.