Instructions to use QomSSLab/etghan_tagging_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QomSSLab/etghan_tagging_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="QomSSLab/etghan_tagging_v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("QomSSLab/etghan_tagging_v2") model = AutoModelForTokenClassification.from_pretrained("QomSSLab/etghan_tagging_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from QomSSLab/etghan_tagging_v2: direct link, hf CLI and curl.
- Browser
- Download file 2.21 kB
-
https://huggingface.co/QomSSLab/etghan_tagging_v2/resolve/main/config.json
- Command line
-
hf download hf://QomSSLab/etghan_tagging_v2/config.json
-
curl -L -o config.json https://huggingface.co/QomSSLab/etghan_tagging_v2/resolve/main/config.json
2.21 kB
| { | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "XLMRobertaForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "dtype": "float32", | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "ABSENCE", | |
| "1": "APPEALABILITY", | |
| "2": "APPEAL_AUTHORITY", | |
| "3": "APPEAL_DEADLINE", | |
| "4": "COURT_NAME", | |
| "5": "DEFENDANT_ADDRESS", | |
| "6": "DEFENDANT_FATHER", | |
| "7": "DEFENDANT_NAME_LEGAL", | |
| "8": "DEFENDANT_NAME_NATURAL", | |
| "9": "FINALITY", | |
| "10": "JUDGE_NAME", | |
| "11": "JUDGE_POSITION", | |
| "12": "JUDGE_SIGNATURE", | |
| "13": "JUDGMENT_DATE", | |
| "14": "LEGAL_CHARGE", | |
| "15": "LEGAL_REPRESENTATIVE", | |
| "16": "O", | |
| "17": "PLACE_OF_OFFENSE", | |
| "18": "PLAINTIFF_ADDRESS", | |
| "19": "PLAINTIFF_CLAIM", | |
| "20": "PLAINTIFF_FATHER", | |
| "21": "PLAINTIFF_NAME_LEGAL", | |
| "22": "PLAINTIFF_NAME_NATURAL", | |
| "23": "PRESENCE", | |
| "24": "SUBJECT_OF_CLAIM", | |
| "25": "TIME_OF_OFFENSE" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "is_decoder": false, | |
| "label2id": { | |
| "ABSENCE": 0, | |
| "APPEALABILITY": 1, | |
| "APPEAL_AUTHORITY": 2, | |
| "APPEAL_DEADLINE": 3, | |
| "COURT_NAME": 4, | |
| "DEFENDANT_ADDRESS": 5, | |
| "DEFENDANT_FATHER": 6, | |
| "DEFENDANT_NAME_LEGAL": 7, | |
| "DEFENDANT_NAME_NATURAL": 8, | |
| "FINALITY": 9, | |
| "JUDGE_NAME": 10, | |
| "JUDGE_POSITION": 11, | |
| "JUDGE_SIGNATURE": 12, | |
| "JUDGMENT_DATE": 13, | |
| "LEGAL_CHARGE": 14, | |
| "LEGAL_REPRESENTATIVE": 15, | |
| "O": 16, | |
| "PLACE_OF_OFFENSE": 17, | |
| "PLAINTIFF_ADDRESS": 18, | |
| "PLAINTIFF_CLAIM": 19, | |
| "PLAINTIFF_FATHER": 20, | |
| "PLAINTIFF_NAME_LEGAL": 21, | |
| "PLAINTIFF_NAME_NATURAL": 22, | |
| "PRESENCE": 23, | |
| "SUBJECT_OF_CLAIM": 24, | |
| "TIME_OF_OFFENSE": 25 | |
| }, | |
| "layer_norm_eps": 1e-05, | |
| "max_position_embeddings": 514, | |
| "model_type": "xlm-roberta", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "absolute", | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.17.0", | |
| "type_vocab_size": 1, | |
| "use_cache": false, | |
| "vocab_size": 250002 | |
| } | |