Instructions to use MAsterIt/ClassifyToken with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MAsterIt/ClassifyToken with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MAsterIt/ClassifyToken")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MAsterIt/ClassifyToken") model = AutoModelForTokenClassification.from_pretrained("MAsterIt/ClassifyToken", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from MAsterIt/ClassifyToken: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/MAsterIt/ClassifyToken/resolve/main/config.json
- Command line
-
hf download hf://MAsterIt/ClassifyToken/config.json
-
curl -L -o config.json https://huggingface.co/MAsterIt/ClassifyToken/resolve/main/config.json
1.09 kB
| { | |
| "_name_or_path": "AutoTrain", | |
| "_num_labels": 8, | |
| "architectures": [ | |
| "BertForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Article", | |
| "1": "Noun", | |
| "2": "Number", | |
| "3": "Operation", | |
| "4": "Pronouns", | |
| "5": "Punctuation", | |
| "6": "SOBV", | |
| "7": "Wh-Questions" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Article": 0, | |
| "Noun": 1, | |
| "Number": 2, | |
| "Operation": 3, | |
| "Pronouns": 4, | |
| "Punctuation": 5, | |
| "SOBV": 6, | |
| "Wh-Questions": 7 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_length": 64, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "padding": "max_length", | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.25.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 28996 | |
| } | |