Token Classification
Transformers
Safetensors
English
deberta-v2
named-entity-recognition
person-names
historical-text
medieval
digital-humanities
prosopography
Instructions to use jmcewan3/LondonLB with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jmcewan3/LondonLB with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="jmcewan3/LondonLB")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("jmcewan3/LondonLB") model = AutoModelForTokenClassification.from_pretrained("jmcewan3/LondonLB", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from jmcewan3/LondonLB: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/jmcewan3/LondonLB/resolve/main/config.json
- Command line
-
hf download hf://jmcewan3/LondonLB/config.json
-
curl -L -o config.json https://huggingface.co/jmcewan3/LondonLB/resolve/main/config.json
1.06 kB
| { | |
| "architectures": [ | |
| "DebertaV2ForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 1, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-PER", | |
| "2": "I-PER" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-PER": 1, | |
| "I-PER": 2, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-07, | |
| "legacy": true, | |
| "max_position_embeddings": 512, | |
| "max_relative_positions": -1, | |
| "model_type": "deberta-v2", | |
| "norm_rel_ebd": "layer_norm", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "pooler_dropout": 0, | |
| "pooler_hidden_act": "gelu", | |
| "pooler_hidden_size": 768, | |
| "pos_att_type": [ | |
| "p2c", | |
| "c2p" | |
| ], | |
| "position_biased_input": false, | |
| "position_buckets": 256, | |
| "relative_attention": true, | |
| "share_att_key": true, | |
| "transformers_version": "4.56.2", | |
| "type_vocab_size": 0, | |
| "vocab_size": 128100 | |
| } | |