Instructions to use xiaoxibing/paper_classify_fine_tuning_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xiaoxibing/paper_classify_fine_tuning_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xiaoxibing/paper_classify_fine_tuning_bert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert") model = AutoModelForSequenceClassification.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert")
model = AutoModelForSequenceClassification.from_pretrained("xiaoxibing/paper_classify_fine_tuning_bert", device_map="auto")Quick Links
mutil-lable classify Fine_tuning bert_base by a dataset classified by 20 clusters from Science Direct Topic
Use a pipeline as a high-level helper
from transformers import pipeline
classifier = pipeline("text-classification", model="xiaoxibing/paper_classify_fine_tuning_bert")
classifier("""The Growing Role of Digital Health Tools in the Care of Patients with Cancer: Current Use, Future Opportunities, and Barriers to Effective Implementation""")
- Downloads last month
- 4
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xiaoxibing/paper_classify_fine_tuning_bert")