Skip to content

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

Description

@addy2019

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions