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

OSError when training #3

Closed
ztcintokyo opened this issue May 26, 2020 · 0 comments
Closed

OSError when training #3

ztcintokyo opened this issue May 26, 2020 · 0 comments

Comments

@ztcintokyo
Copy link

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!

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

No branches or pull requests

1 participant