Text Classification
Transformers
PyTorch
TensorBoard
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Hyeonseo/finance_news_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hyeonseo/finance_news_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hyeonseo/finance_news_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hyeonseo/finance_news_classifier") model = AutoModelForSequenceClassification.from_pretrained("Hyeonseo/finance_news_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from Hyeonseo/finance_news_classifier: direct link, hf CLI and curl.
- Browser
- Download file 167 Bytes
-
https://huggingface.co/Hyeonseo/finance_news_classifier/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://Hyeonseo/finance_news_classifier/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Hyeonseo/finance_news_classifier/resolve/main/special_tokens_map.json
167 Bytes
| { | |
| "bos_token": "<s>", | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "mask_token": "<mask>", | |
| "pad_token": "<pad>", | |
| "sep_token": "</s>", | |
| "unk_token": "<unk>" | |
| } | |