Text Classification
Transformers
PyTorch
Safetensors
English
roberta
argument-mining
opinion-mining
information-extraction
inference-extraction
Twitter
Run this model with HF Jobs
Run TomatenMarc/WRAP 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/TomatenMarc/WRAP. 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/TomatenMarc/WRAP 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 TomatenMarc/WRAP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TomatenMarc/WRAP with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TomatenMarc/WRAP")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TomatenMarc/WRAP") model = AutoModelForSequenceClassification.from_pretrained("TomatenMarc/WRAP", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
87a8dbd
1
Parent(s): 2476254
Upload 10 files
Browse files140 unmodified lines1411421431441451461471481491501511521531541 unmodified line156157158159160161162163164165166167168169170171172173174140 unmodified lines"lr": 4e-05},"scheduler": "WarmupLinear","warmup_steps": 66,"weight_decay": 0.06}```## EvaluationWe applied a 6-fold (In-Topic) cross-validation method to demonstrate WRAP's optimal performance. This involved using the same dataset and parametersdescribed in the *Training* section, where we trained on k-1 splits and made predictions using the kth split.Additionally, we assessed its ability to generalize across the 6 topics (Cross-Topic) of TACO. Each of the k topics was utilized for testing, while1 unmodified lineIn total, the WRAP classifier performs as follows:### Content Management| Macro-F1 | Inference | Information | Multiclass ||-------------|-----------|-------------|------------|| In-Topic | 87.71% | 85.34% | 75.80% || Cross-Topic | 86.71% | 84.58% | 73.92% |### Classification| Micro-F1 | Reason | Statement | Notification | None ||-------------|--------|-----------|--------------|--------|| In-Topic | 77.82% | 61.10% | 80.56% | 83.71% || Cross-Topic | 76.52% | 58.99% | 78.43% | 81.73% |# Environmental Impact140 unmodified lines1411421431441451461471481491501511521531 unmodified line155156157158159160161162163164165166167168169170171172173140 unmodified lines"lr": 4e-05},"scheduler": "WarmupLinear","warmup_steps": 66}```## EvaluationWe applied a 6-fold (Closed-Topic) cross-validation method to demonstrate WRAP's optimal performance. This involved using the same dataset and parametersdescribed in the *Training* section, where we trained on k-1 splits and made predictions using the kth split.Additionally, we assessed its ability to generalize across the 6 topics (Cross-Topic) of TACO. Each of the k topics was utilized for testing, while1 unmodified lineIn total, the WRAP classifier performs as follows:### Binary Classification Tasks| Macro-F1 | Inference | Information | Multi-Class ||--------------|-----------|-------------|-------------|| Closed-Topic | 86.62% | 86.30% | 75.29% || Cross-Topic | 86.27% | 84.90% | 73.54% |### Multi-Class Classification Task| Micro-F1 | Reason | Statement | Notification | None ||--------------|--------|-----------|--------------|--------|| Closed-Topic | 78.14% | 60.96% | 79.36% | 82.72% || Cross-Topic | 77.05% | 58.33% | 78.45% | 80.33% |# Environmental Impact
README.md+12-13