Instructions to use jinmang2/textcnn-ko-dialect-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jinmang2/textcnn-ko-dialect-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jinmang2/textcnn-ko-dialect-classifier", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("jinmang2/textcnn-ko-dialect-classifier", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -1
config.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "jinmang2/textcnn-ko-dialect-classifier",
|
| 3 |
"auto_map": {
|
| 4 |
-
"AutoConfig": "configuration_textcnn.TextCNNConfig"
|
|
|
|
|
|
|
| 5 |
},
|
| 6 |
"architectures": [
|
| 7 |
"TextCNNForSequenceClassification"
|
|
|
|
| 1 |
{
|
| 2 |
"_name_or_path": "jinmang2/textcnn-ko-dialect-classifier",
|
| 3 |
"auto_map": {
|
| 4 |
+
"AutoConfig": "configuration_textcnn.TextCNNConfig",
|
| 5 |
+
"AutoModel": "modeling_textcnn.TextCNNModel",
|
| 6 |
+
"AutoModelForSequenceClassification": "modeling_textcnn.TextCNNForSequenceClassification"
|
| 7 |
},
|
| 8 |
"architectures": [
|
| 9 |
"TextCNNForSequenceClassification"
|