Instructions to use mmoradi/Robust-Biomed-RoBERTa-TextClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mmoradi/Robust-Biomed-RoBERTa-TextClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mmoradi/Robust-Biomed-RoBERTa-TextClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("mmoradi/Robust-Biomed-RoBERTa-TextClassification") model = AutoModel.from_pretrained("mmoradi/Robust-Biomed-RoBERTa-TextClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from mmoradi/Robust-Biomed-RoBERTa-TextClassification: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/mmoradi/Robust-Biomed-RoBERTa-TextClassification/resolve/main/processor_config.json
- Command line
-
hf download hf://mmoradi/Robust-Biomed-RoBERTa-TextClassification/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/mmoradi/Robust-Biomed-RoBERTa-TextClassification/resolve/main/processor_config.json
644 Bytes
| {"baskets": [], "data_dir": "PubMed-RCT-Data", "delimiter": "\t", "dev_filename": null, "dev_split": 0, "header": 0, "max_samples": null, "max_seq_len": 128, "proxies": null, "quote_char": "'", "skiprows": null, "tasks": {"text_classification": {"label_list": ["BACKGROUND", "OBJECTIVE", "METHOD", "RESULT", "CONCLUSION"], "metric": "acc", "label_tensor_name": "text_classification_label_ids", "label_name": "text_classification_label", "label_column_name": "label", "task_type": "multilabel_classification"}}, "test_filename": "Test.tsv", "train_filename": "Train.tsv", "tokenizer": "BertTokenizer", "processor": "TextClassificationProcessor"} |