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

Allow for using trained SetFit models #4

Closed
tomaarsen opened this issue Jun 19, 2023 · 3 comments
Closed

Allow for using trained SetFit models #4

tomaarsen opened this issue Jun 19, 2023 · 3 comments

Comments

@tomaarsen
Copy link
Contributor

I'd love to be able to use a trained SetFit model, e.g.:

import spacy
import spacy_setfit

# Load the spaCy language model:
nlp = spacy.load("en_core_web_sm")

# Add the "text_categorizer" pipeline component to the spaCy model
nlp.add_pipe("text_categorizer", config={
    "pretrained_model_name_or_path": "addy88/sst5-setfit-model",
})
doc = nlp("I really love that film.")
print(doc.cats)

Right now this throws an error.

  • Tom Aarsen
@davidberenstein1957
Copy link
Owner

check 0.1.4

@tomaarsen
Copy link
Contributor Author

Awesome! Well done

@davidberenstein1957
Copy link
Owner

davidberenstein1957 commented Jun 19, 2023 via email

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

2 participants