Text Classification
Transformers
Safetensors
Vietnamese
vnsabsa
feature-extraction
finance
custom_code
Instructions to use ptdat/vn-smartphone-absa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ptdat/vn-smartphone-absa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ptdat/vn-smartphone-absa", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ptdat/vn-smartphone-absa", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- tokenization_vnsabsa.py +1 -1
tokenization_vnsabsa.py
CHANGED
|
@@ -13,7 +13,7 @@ import requests
|
|
| 13 |
class VnSmartphoneAbsaTokenizer(PreTrainedTokenizer):
|
| 14 |
vocab_files_names = {
|
| 15 |
"vocab_file": "vocab.txt",
|
| 16 |
-
"
|
| 17 |
}
|
| 18 |
pretrained_vocab_files_map = {
|
| 19 |
"vocab_file": "https://huggingface.co/ptdat/vn-smartphone-absa/resolve/main/vocab.txt",
|
|
|
|
| 13 |
class VnSmartphoneAbsaTokenizer(PreTrainedTokenizer):
|
| 14 |
vocab_files_names = {
|
| 15 |
"vocab_file": "vocab.txt",
|
| 16 |
+
"merge_file": "merge.txt",
|
| 17 |
}
|
| 18 |
pretrained_vocab_files_map = {
|
| 19 |
"vocab_file": "https://huggingface.co/ptdat/vn-smartphone-absa/resolve/main/vocab.txt",
|