Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

No adapter with name 'sentiment/hinglish-twitter-sentiment@nirantk' was found in the adapter index. #27

Closed
whisere opened this issue Apr 16, 2021 · 5 comments

Comments

@whisere
Copy link

whisere commented Apr 16, 2021

Hello, will you be able to help with this issue:
No adapter with name 'sentiment/hinglish-twitter-sentiment@nirantk' was found in the adapter index.

inception-project/inception-external-recommender#28

Thanks!

@calpt
Copy link
Member

calpt commented Apr 16, 2021

Hi @whisere,

I tried to reproduce the error using the sample code from our website, i.e.:

model = BertModelWithHeads.from_pretrained("bert-base-multilingual-uncased")
model.load_adapter("sentiment/hinglish-twitter-sentiment@nirantk", "text_task", config="pfeiffer")

but this runs without problems, so there doesn't seem to be a problem on our side. I'm not quite familiar with Inception but I'll try to see if there maybe is a problem with the integration.

@whisere
Copy link
Author

whisere commented Apr 19, 2021

Thank you very much @calpt I will look into Inception too, perhaps something to do with the other options, "text_task" and "pfeiffer" but I can't find them in inception, will keep looking. Thanks!

@whisere
Copy link
Author

whisere commented Apr 21, 2021

It seems this has been fixed at the Inception side. I will keep testing. How do we know the labels used in the Adapters? I can only find this adapter states they use 'postive, netural, negative' as tags in their description https://adapterhub.ml/explore/sentiment/hinglish-twitter-sentiment/ but not sure if the other Sentiment Analysis adapters also use 'netural' or have other tags? Thank you!

@calpt
Copy link
Member

calpt commented Apr 23, 2021

Great to hear. The labels of an adapter are determined by the task they're trained on, so looking up the respective task should give information about the label classes, e.g.:

SST-2: https://huggingface.co/datasets/glue#sst2
IMDb: https://huggingface.co/datasets/imdb
Rotten Tomatoes: https://huggingface.co/datasets/rotten_tomatoes

Unfortunately, not all adapters provide this information within their description currently, we're trying to improve that in the future.

@whisere
Copy link
Author

whisere commented Apr 27, 2021

Thank you so much!! That's very helpful!

@calpt calpt closed this as completed May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants