Instructions to use timhbach/Team_Gryffindor_NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use timhbach/Team_Gryffindor_NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="timhbach/Team_Gryffindor_NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("timhbach/Team_Gryffindor_NER") model = AutoModelForTokenClassification.from_pretrained("timhbach/Team_Gryffindor_NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from timhbach/Team_Gryffindor_NER: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/timhbach/Team_Gryffindor_NER/resolve/main/config.json
- Command line
-
hf download hf://timhbach/Team_Gryffindor_NER/config.json
-
curl -L -o config.json https://huggingface.co/timhbach/Team_Gryffindor_NER/resolve/main/config.json
1.34 kB
| { | |
| "_name_or_path": "distilbert-base-uncased", | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForTokenClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-MISC", | |
| "10": "I-Issuer", | |
| "11": "B-Card Name", | |
| "12": "I-Card Name", | |
| "13": "B-Jurisdiction", | |
| "14": "I-Jurisdiction", | |
| "15": "B-Interest Rate", | |
| "16": "I-Interest Rate", | |
| "2": "I-MISC", | |
| "3": "B-PER", | |
| "4": "I-PER", | |
| "5": "B-ORG", | |
| "6": "I-ORG", | |
| "7": "B-LOC", | |
| "8": "I-LOC", | |
| "9": "B-Issuer" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "B-Card Name": "11", | |
| "B-Interest Rate": "15", | |
| "B-Issuer": "9", | |
| "B-Jurisdiction": "13", | |
| "B-LOC": "7", | |
| "B-MISC": "1", | |
| "B-ORG": "5", | |
| "B-PER": "3", | |
| "I-Card Name": "12", | |
| "I-Interest Rate": "16", | |
| "I-Issuer": "10", | |
| "I-Jurisdiction": "14", | |
| "I-LOC": "8", | |
| "I-MISC": "2", | |
| "I-ORG": "6", | |
| "I-PER": "4", | |
| "O": "0" | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.18.0", | |
| "vocab_size": 30522 | |
| } | |