Text Classification
Transformers
Safetensors
English
French
bert
myocardial-infarction
biomedical
classification
pubmed
scientific-literature
medical-research
text-embeddings-inference
Instructions to use slepape/ArticleTypePrediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use slepape/ArticleTypePrediction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="slepape/ArticleTypePrediction")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("slepape/ArticleTypePrediction") model = AutoModelForSequenceClassification.from_pretrained("slepape/ArticleTypePrediction") - Notebooks
- Google Colab
- Kaggle
| { | |
| "model_name": "microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext", | |
| "task": "text-classification", | |
| "num_labels": 9, | |
| "classes": [ | |
| "CASE_REPORTS", | |
| "COMMENT", | |
| "EDITORIAL", | |
| "GUIDELINES", | |
| "META_ANALYSIS", | |
| "PROSPECTIVE", | |
| "RCT", | |
| "RETROSPECTIVE", | |
| "REVIEW" | |
| ], | |
| "training_details": { | |
| "final_accuracy": 0.937962962962963, | |
| "final_f1": 0.9377, | |
| "total_samples": 54000, | |
| "epochs": 10, | |
| "learning_rate": 0.0001, | |
| "batch_size": 32, | |
| "max_length": 512, | |
| "best_checkpoint": "checkpoint-2000" | |
| }, | |
| "text_preprocessing": { | |
| "format": "[TITLE] {title} [SEP] [ABSTRACT] {abstract}", | |
| "special_tokens": [ | |
| "[TITLE]", | |
| "[SEP]", | |
| "[ABSTRACT]" | |
| ], | |
| "truncation_strategy": "optimized_title_abstract_split" | |
| } | |
| } |