Instructions to use chosenone80/bert-ner-test-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chosenone80/bert-ner-test-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="chosenone80/bert-ner-test-3")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("chosenone80/bert-ner-test-3") model = AutoModelForTokenClassification.from_pretrained("chosenone80/bert-ner-test-3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "CAMeL-Lab/bert-base-arabic-camelbert-ca", | |
| "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": "B-Allah", | |
| "1": "I-Allah", | |
| "2": "B-Book", | |
| "3": "I-Book", | |
| "4": "B-Clan", | |
| "5": "I-Clan", | |
| "6": "B-Crime", | |
| "7": "I-Crime", | |
| "8": "B-Date", | |
| "9": "I-Date", | |
| "10": "B-Day", | |
| "11": "I-Day", | |
| "12": "B-Hell", | |
| "13": "I-Hell", | |
| "14": "B-Loc", | |
| "15": "I-Loc", | |
| "16": "B-Meas", | |
| "17": "I-Meas", | |
| "18": "B-Mon", | |
| "19": "I-Mon", | |
| "20": "B-Month", | |
| "21": "I-Month", | |
| "22": "B-NatOb", | |
| "23": "I-NatOb", | |
| "24": "B-NUM", | |
| "25": "I-NUM", | |
| "26": "O", | |
| "27": "B-Org", | |
| "28": "I-Org", | |
| "29": "B-Para", | |
| "30": "I-Para", | |
| "31": "B-Pers", | |
| "32": "I-Pers", | |
| "33": "B-Prophet", | |
| "34": "I-Prophet", | |
| "35": "B-Rlig", | |
| "36": "I-Rlig", | |
| "37": "B-Sect", | |
| "38": "I-Sect", | |
| "39": "B-Time", | |
| "40": "I-Time" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-Allah": 0, | |
| "B-Book": 2, | |
| "B-Clan": 4, | |
| "B-Crime": 6, | |
| "B-Date": 8, | |
| "B-Day": 10, | |
| "B-Hell": 12, | |
| "B-Loc": 14, | |
| "B-Meas": 16, | |
| "B-Mon": 18, | |
| "B-Month": 20, | |
| "B-NUM": 24, | |
| "B-NatOb": 22, | |
| "B-Org": 27, | |
| "B-Para": 29, | |
| "B-Pers": 31, | |
| "B-Prophet": 33, | |
| "B-Rlig": 35, | |
| "B-Sect": 37, | |
| "B-Time": 39, | |
| "I-Allah": 1, | |
| "I-Book": 3, | |
| "I-Clan": 5, | |
| "I-Crime": 7, | |
| "I-Date": 9, | |
| "I-Day": 11, | |
| "I-Hell": 13, | |
| "I-Loc": 15, | |
| "I-Meas": 17, | |
| "I-Mon": 19, | |
| "I-Month": 21, | |
| "I-NUM": 25, | |
| "I-NatOb": 23, | |
| "I-Org": 28, | |
| "I-Para": 30, | |
| "I-Pers": 32, | |
| "I-Prophet": 34, | |
| "I-Rlig": 36, | |
| "I-Sect": 38, | |
| "I-Time": 40, | |
| "O": 26 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "transformers_version": "4.37.2", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 30000 | |
| } | |