Run this model with HF Jobs
Run JohanHeinsen/Labour_advertisement_identifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/JohanHeinsen/Labour_advertisement_identifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/JohanHeinsen/Labour_advertisement_identifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use JohanHeinsen/Labour_advertisement_identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JohanHeinsen/Labour_advertisement_identifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JohanHeinsen/Labour_advertisement_identifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use JohanHeinsen/Labour_advertisement_identifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JohanHeinsen/Labour_advertisement_identifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
This is a SetFit model that can be used for text classification. It is trained to identify ads for labour (either workers searching for employment or employers seeking workers) in early modern Danish newspapers.
Metrics: {'accuracy': 0.9966740576496674, 'f1': 0.9387755102040817}
- Downloads last month
- 18
Model tree for JohanHeinsen/Labour_advertisement_identifier
Base model
CALDISS-AAU/DA-BERT_Old_News_V1
from setfit import SetFitModel model = SetFitModel.from_pretrained("JohanHeinsen/Labour_advertisement_identifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds)