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

Evaluate v0.1.0 wrt. the validation set #2

Open
ninpnin opened this issue Feb 22, 2024 · 1 comment
Open

Evaluate v0.1.0 wrt. the validation set #2

ninpnin opened this issue Feb 22, 2024 · 1 comment

Comments

@ninpnin
Copy link
Collaborator

ninpnin commented Feb 22, 2024

Evaluate this model: https://github.com/welfare-state-analytics/bert-riksdagen-classifier/releases/tag/v0.1.0 . We probably want a separate script that takes in a huggingface model, and evaluates it on a (validation) dataset.

@ninpnin
Copy link
Collaborator Author

ninpnin commented Mar 28, 2024

The new release (v0.2.0) works with the huggingface pipeline

>>> from transformers import pipeline
>>> cls = pipeline("text-classification", model="./ft2classes")
>>> cls("Herr talman!")
[{'label': 'note', 'score': 0.6480845212936401}]

Now we just need to adjust the script to actually use the hugginface class, so that we can evaluate both models v0.1 and v0.2

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