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

Handle missing concepts more gracefully #493

Open
adelavega opened this issue Apr 17, 2024 · 0 comments
Open

Handle missing concepts more gracefully #493

adelavega opened this issue Apr 17, 2024 · 0 comments

Comments

@adelavega
Copy link
Member

This error happens when a selected_concept is passed to Clarifai which does not get found in the stimuli

  File "/home/zorro/anaconda3/envs/pliers/lib/python3.12/site-packages/pliers/extractors/base.py", line 19, in transform
    result = super().transform(stim, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zorro/anaconda3/envs/pliers/lib/python3.12/site-packages/pliers/transformers/base.py", line 56, in wrapper
    result = transform(self, stim, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zorro/anaconda3/envs/pliers/lib/python3.12/site-packages/pliers/transformers/base.py", line 105, in transform
    iters = self._iterate(stims, validation=validation, *args,
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zorro/anaconda3/envs/pliers/lib/python3.12/site-packages/pliers/transformers/base.py", line 259, in _iterate
    result = batch_results[target_inds[key]]
             ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
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