javicorvi/pretoxtm-dataset
Viewer • Updated • 2.93k • 20
How to use javicorvi/pretoxtm-sentence-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="javicorvi/pretoxtm-sentence-classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("javicorvi/pretoxtm-sentence-classifier")
model = AutoModelForSequenceClassification.from_pretrained("javicorvi/pretoxtm-sentence-classifier")This model is a fine-tuned version of microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext on javicorvi/pretoxtm-dataset. It achieves the following results on the evaluation set:
PretoxTM Sentence Classifier is a model trained on preclinical toxicology literature, designed to detect sentences that contain treatment-related findings.
The model was trained on javicorvi/pretoxtm-dataset.
The dataset is divided in train, validation and test.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Accuracy | F1 |
|---|---|---|---|---|---|---|---|
| 0.2543 | 1.0 | 514 | 0.1181 | 0.9788 | 0.9800 | 0.9795 | 0.9794 |
| 0.1344 | 2.0 | 1028 | 0.1488 | 0.9767 | 0.9775 | 0.9773 | 0.9771 |
| 0.0419 | 3.0 | 1542 | 0.1520 | 0.9767 | 0.9775 | 0.9773 | 0.9771 |