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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("slepape/ArticleTypePrediction") model = AutoModelForSequenceClassification.from_pretrained("slepape/ArticleTypePrediction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_mapping.json from slepape/ArticleTypePrediction: direct link, hf CLI and curl.
- Browser
- Download file 166 Bytes
-
https://huggingface.co/slepape/ArticleTypePrediction/resolve/main/label_mapping.json
- Command line
-
hf download hf://slepape/ArticleTypePrediction/label_mapping.json
-
curl -L -o label_mapping.json https://huggingface.co/slepape/ArticleTypePrediction/resolve/main/label_mapping.json
166 Bytes
| { | |
| "CASE_REPORT": 0, | |
| "COMMENT": 1, | |
| "EDITORIAL": 2, | |
| "GUIDELINES": 3, | |
| "META_ANALYSIS": 4, | |
| "PROSPECTIVE": 5, | |
| "RCT": 6, | |
| "RETROSPECTIVE": 7, | |
| "REVIEW": 8 | |
| } |