Run this model with HF Jobs

Run orisuchy/Descriptive_Classifier 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/orisuchy/Descriptive_Classifier. 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/orisuchy/Descriptive_Classifier 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.
orisuchy's picture
Update README.md
f1eb001
|
Raw History Blame Contribute Delete
1.6 kB
metadata
license: afl-3.0
language: he
tags:
  - Text Classification
widget:
  - text: היער השחור והגדול
  - text: ואז הוא הלך לטייל בתוך היער השחור והגדול
datasets:
  - orisuchy/Descriptive_Sentences_He
metrics:
  - accuracy
  - f1

Descriptive Sentences Classifier

Based on AlephBERT model.

Metrics

accuracy: 0.813953488372093
f1: 0.8181818181818182

How to Use the model:

from transformers import pipeline
classifier = pipeline("text-classification",model='orisuchy/Descriptive_Classifier', return_all_scores=True)
outputs = classifier("מסווג חתיך במיוחד")
print(outputs)

"""
Output:
[[
{'label': 'Descriptive', 'score': 0.999764621257782},
{'label': 'Not Descriptive', 'score': 0.00023541577684227377}]]
"""

Or, if you want only the final class:

from transformers import pipeline
classifier = pipeline("text-classification",model='orisuchy/Descriptive_Classifier')
output = classifier("הלכתי אליו הביתה וחיכיתי")
print(output)

"""
Output:
[{'label': 'Not Descriptive', 'score': 0.999901533126831}]
"""

Created by Daniel Smotritsky & Ori Suchy
GitHub