Instructions to use Kaspar/modification_best_model_modernbert_sentence with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kaspar/modification_best_model_modernbert_sentence with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Kaspar/modification_best_model_modernbert_sentence")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Kaspar/modification_best_model_modernbert_sentence") model = AutoModelForSequenceClassification.from_pretrained("Kaspar/modification_best_model_modernbert_sentence", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modification clause classifier
Binary sentence classifier for modification clauses in terms of service of online platforms
(label 1 = the sentence belongs to a modification clause), fine-tuned from answerdotai/ModernBERT-base.
- Input: the target sentence only.
- Training data:
modification_annotations.csv: sentences labelled by Claude models; one label per distinct sentence, 1229 training and 218 test examples (test set = 15% of the distinct sentences). - Test metrics: {'accuracy': 0.986, 'precision': 0.933, 'recall': 1.0, 'f1': 0.966}
Settings for applying the model are in classifier_config.json.
- Downloads last month
- 33
Model tree for Kaspar/modification_best_model_modernbert_sentence
Base model
answerdotai/ModernBERT-base