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
File size: 644 Bytes
24a1779 | 1 | {"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"} |