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

analysis is throughing error TypeError: 'type' object is not subscriptable #4

Open
addy2019 opened this issue Jan 15, 2022 · 0 comments

Comments

@addy2019
Copy link

File "", line 1, in
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/init.py", line 158, in analyse_file
return analyse(
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/init.py", line 223, in analyse
components = segmenter.get_components_from_document(document)
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/argument_segmentation.py", line 176, in get_components_from_document
predictions = [self.predict(sentence) for sentence in sentences]
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/argument_segmentation.py", line 176, in
predictions = [self.predict(sentence) for sentence in sentences]
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/argument_segmentation.py", line 135, in predict
predictions = super().predict(data, probability=False)[0]
File "/home/indus/.local/lib/python3.8/site-packages/canary/argument_pipeline/base.py", line 251, in predict
def probability_predict(inp) -> Union[list[dict], dict]:
TypeError: 'type' object is not subscriptable

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