Text Classification
Transformers
Safetensors
code
bert
Generated from Trainer
text-embeddings-inference
Instructions to use HuggingFaceTB/stack-edu-classifier-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceTB/stack-edu-classifier-java with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HuggingFaceTB/stack-edu-classifier-java")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/stack-edu-classifier-java") model = AutoModelForSequenceClassification.from_pretrained("HuggingFaceTB/stack-edu-classifier-java", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from HuggingFaceTB/stack-edu-classifier-java: direct link, hf CLI and curl.
- Browser
- Download file 906 Bytes
-
https://huggingface.co/HuggingFaceTB/stack-edu-classifier-java/resolve/697da1270ea734dbf6f66ecd68d621372d094c24/special_tokens_map.json
- Command line
-
hf download hf://HuggingFaceTB/stack-edu-classifier-java@697da1270ea734dbf6f66ecd68d621372d094c24/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/HuggingFaceTB/stack-edu-classifier-java/resolve/697da1270ea734dbf6f66ecd68d621372d094c24/special_tokens_map.json
906 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|endoftext|>", | |
| "<fim_prefix>", | |
| "<fim_middle>", | |
| "<fim_suffix>", | |
| "<fim_pad>", | |
| "<filename>", | |
| "<gh_stars>", | |
| "<issue_start>", | |
| "<issue_comment>", | |
| "<issue_closed>", | |
| "<jupyter_start>", | |
| "<jupyter_text>", | |
| "<jupyter_code>", | |
| "<jupyter_output>", | |
| "<empty_output>", | |
| "<commit_before>", | |
| "<commit_msg>", | |
| "<commit_after>", | |
| "<reponame>" | |
| ], | |
| "bos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |