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

IndexError: list index out of range #14

Open
ari9dam opened this issue Sep 7, 2018 · 0 comments
Open

IndexError: list index out of range #14

ari9dam opened this issue Sep 7, 2018 · 0 comments

Comments

@ari9dam
Copy link

ari9dam commented Sep 7, 2018

For some sentences I am getting this error,
span_outputs = self._model.span_detector.forward_on_instances(instances)
File "/anaconda2/envs/qasrl/lib/python3.6/site-packages/allennlp/models/model.py", line 150, in forward_on_instances
model_input = dataset.as_tensor_dict(cuda_device=cuda_device)
File "/anaconda2/envs/qasrl/lib/python3.6/site-packages/allennlp/data/dataset.py", line 147, in as_tensor_dict
field_classes = self.instances[0].fields
IndexError: list index out of range

Is it because Spacy failed to find any `verb'? (allenai/allennlp#996)

Is there any way pass sentence along with POS?

Thank you

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