Instructions to use Leonardolin/NTCIR_att_sup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Leonardolin/NTCIR_att_sup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Leonardolin/NTCIR_att_sup")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Leonardolin/NTCIR_att_sup") model = AutoModelForSequenceClassification.from_pretrained("Leonardolin/NTCIR_att_sup") - Notebooks
- Google Colab
- Kaggle
tokenizer = BertTokenizer.from_pretrained("bert-base-chinese")
config = BertConfig.from_pretrained('Leonardolin/NTCIR_att_sup', num_labels=2)
model = BertForSequenceClassification.from_pretrained("Leonardolin/NTCIR_att_sup",config=config)
- Downloads last month
- 2