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
Commit ·
a1bee89
1
Parent(s): ccb91ed
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- zh
|
| 4 |
+
---
|
| 5 |
+
tokenizer = BertTokenizer.from_pretrained("bert-base-chinese")</br>
|
| 6 |
+
config = BertConfig.from_pretrained('Leonardolin/NTCIR_att_sup', num_labels=2)</br>
|
| 7 |
+
model = BertForSequenceClassification.from_pretrained("Leonardolin/NTCIR_att_sup",config=config)
|