Instructions to use kwoncho/KoFinBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kwoncho/KoFinBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kwoncho/KoFinBERT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kwoncho/KoFinBERT") model = AutoModelForSequenceClassification.from_pretrained("kwoncho/KoFinBERT") - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": "[CLS]", | |
| "cls_token": "[CLS]", | |
| "do_basic_tokenize": true, | |
| "do_lower_case": false, | |
| "eos_token": "[SEP]", | |
| "mask_token": "[MASK]", | |
| "model_max_length": 512, | |
| "name_or_path": "./checkpoint_3/best_model", | |
| "never_split": null, | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "special_tokens_map_file": "/home/jhgan/.cache/huggingface/transformers/9d0c87e44b00acfbfbae931b2e4068eb6311a0c3e71e23e5400bdf57cab4bfbf.70c17d6e4d492c8f24f5bb97ab56c7f272e947112c6faf9dd846da42ba13eb23", | |
| "strip_accents": null, | |
| "tokenize_chinese_chars": true, | |
| "tokenizer_class": "BertTokenizer", | |
| "unk_token": "[UNK]" | |
| } | |