Instructions to use AiLab-IMCS-UL/lv-ner-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AiLab-IMCS-UL/lv-ner-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="AiLab-IMCS-UL/lv-ner-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AiLab-IMCS-UL/lv-ner-v1") model = AutoModelForTokenClassification.from_pretrained("AiLab-IMCS-UL/lv-ner-v1") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architectures": [ | |
| "DebertaV2ForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 32768, | |
| "conv_act": "gelu", | |
| "conv_kernel_size": 0, | |
| "dtype": "float32", | |
| "embedding_size": 768, | |
| "eos_token_id": 32769, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-GPE", | |
| "2": "B-entity", | |
| "3": "B-event", | |
| "4": "B-location", | |
| "5": "B-money", | |
| "6": "B-organization", | |
| "7": "B-person", | |
| "8": "B-product", | |
| "9": "B-time", | |
| "10": "I-GPE", | |
| "11": "I-entity", | |
| "12": "I-event", | |
| "13": "I-location", | |
| "14": "I-money", | |
| "15": "I-organization", | |
| "16": "I-person", | |
| "17": "I-product", | |
| "18": "I-time" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-GPE": 1, | |
| "B-entity": 2, | |
| "B-event": 3, | |
| "B-location": 4, | |
| "B-money": 5, | |
| "B-organization": 6, | |
| "B-person": 7, | |
| "B-product": 8, | |
| "B-time": 9, | |
| "I-GPE": 10, | |
| "I-entity": 11, | |
| "I-event": 12, | |
| "I-location": 13, | |
| "I-money": 14, | |
| "I-organization": 15, | |
| "I-person": 16, | |
| "I-product": 17, | |
| "I-time": 18, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-07, | |
| "legacy": true, | |
| "max_position_embeddings": 1024, | |
| "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.57.3", | |
| "type_vocab_size": 0, | |
| "vocab_size": 32776 | |
| } | |