Token Classification
Transformers
Safetensors
English
Spanish
xlm-roberta
ner
named-entity-recognition
digital-humanities
art-history
exhibition-catalogues
complexhibit
Instructions to use Complexhibit-Project/complexhibit-nivel2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Complexhibit-Project/complexhibit-nivel2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Complexhibit-Project/complexhibit-nivel2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Complexhibit-Project/complexhibit-nivel2") model = AutoModelForTokenClassification.from_pretrained("Complexhibit-Project/complexhibit-nivel2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- config.json +72 -0
- metricas.json +17 -0
- model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +19 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"XLMRobertaForTokenClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"dtype": "float16",
|
| 10 |
+
"eos_token_id": 2,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 1024,
|
| 14 |
+
"id2label": {
|
| 15 |
+
"0": "O",
|
| 16 |
+
"1": "B-ADDR",
|
| 17 |
+
"2": "I-ADDR",
|
| 18 |
+
"3": "B-DATE",
|
| 19 |
+
"4": "I-DATE",
|
| 20 |
+
"5": "B-DIM",
|
| 21 |
+
"6": "I-DIM",
|
| 22 |
+
"7": "B-IDNO",
|
| 23 |
+
"8": "I-IDNO",
|
| 24 |
+
"9": "B-LOC",
|
| 25 |
+
"10": "I-LOC",
|
| 26 |
+
"11": "B-ORG",
|
| 27 |
+
"12": "I-ORG",
|
| 28 |
+
"13": "B-PER",
|
| 29 |
+
"14": "I-PER",
|
| 30 |
+
"15": "B-TECH",
|
| 31 |
+
"16": "I-TECH",
|
| 32 |
+
"17": "B-TITLE",
|
| 33 |
+
"18": "I-TITLE"
|
| 34 |
+
},
|
| 35 |
+
"initializer_range": 0.02,
|
| 36 |
+
"intermediate_size": 4096,
|
| 37 |
+
"is_decoder": false,
|
| 38 |
+
"label2id": {
|
| 39 |
+
"B-ADDR": 1,
|
| 40 |
+
"B-DATE": 3,
|
| 41 |
+
"B-DIM": 5,
|
| 42 |
+
"B-IDNO": 7,
|
| 43 |
+
"B-LOC": 9,
|
| 44 |
+
"B-ORG": 11,
|
| 45 |
+
"B-PER": 13,
|
| 46 |
+
"B-TECH": 15,
|
| 47 |
+
"B-TITLE": 17,
|
| 48 |
+
"I-ADDR": 2,
|
| 49 |
+
"I-DATE": 4,
|
| 50 |
+
"I-DIM": 6,
|
| 51 |
+
"I-IDNO": 8,
|
| 52 |
+
"I-LOC": 10,
|
| 53 |
+
"I-ORG": 12,
|
| 54 |
+
"I-PER": 14,
|
| 55 |
+
"I-TECH": 16,
|
| 56 |
+
"I-TITLE": 18,
|
| 57 |
+
"O": 0
|
| 58 |
+
},
|
| 59 |
+
"layer_norm_eps": 1e-05,
|
| 60 |
+
"max_position_embeddings": 514,
|
| 61 |
+
"model_type": "xlm-roberta",
|
| 62 |
+
"num_attention_heads": 16,
|
| 63 |
+
"num_hidden_layers": 24,
|
| 64 |
+
"output_past": true,
|
| 65 |
+
"pad_token_id": 1,
|
| 66 |
+
"position_embedding_type": "absolute",
|
| 67 |
+
"tie_word_embeddings": true,
|
| 68 |
+
"transformers_version": "5.22.2",
|
| 69 |
+
"type_vocab_size": 1,
|
| 70 |
+
"use_cache": false,
|
| 71 |
+
"vocab_size": 250002
|
| 72 |
+
}
|
metricas.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"entidad_micro": {
|
| 3 |
+
"precision": 0.7021021021021021,
|
| 4 |
+
"recall": 0.7527366387636832,
|
| 5 |
+
"f1": 0.7265382224984462
|
| 6 |
+
},
|
| 7 |
+
"palabra_micro": {
|
| 8 |
+
"precision": 0.7652379926771484,
|
| 9 |
+
"recall": 0.8060344827586207,
|
| 10 |
+
"f1": 0.7851066180532538
|
| 11 |
+
},
|
| 12 |
+
"fragmentos": {
|
| 13 |
+
"train": 8286,
|
| 14 |
+
"validation": 901,
|
| 15 |
+
"test": 1028
|
| 16 |
+
}
|
| 17 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:731d2d0fcbc2ee0e1294353865414b065fc27134f1d899098c60464e8569c2b3
|
| 3 |
+
size 1117768510
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1065c14bf5f3d26a369bb348eae791e137f4b69cc85f846cc14bde0e6c49aca
|
| 3 |
+
size 17098184
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": true,
|
| 3 |
+
"backend": "tokenizers",
|
| 4 |
+
"bos_token": "<s>",
|
| 5 |
+
"cls_token": "<s>",
|
| 6 |
+
"eos_token": "</s>",
|
| 7 |
+
"is_local": true,
|
| 8 |
+
"local_files_only": false,
|
| 9 |
+
"mask_token": "<mask>",
|
| 10 |
+
"max_length": 512,
|
| 11 |
+
"model_max_length": 512,
|
| 12 |
+
"pad_token": "<pad>",
|
| 13 |
+
"sep_token": "</s>",
|
| 14 |
+
"stride": 0,
|
| 15 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 16 |
+
"truncation_side": "right",
|
| 17 |
+
"truncation_strategy": "longest_first",
|
| 18 |
+
"unk_token": "<unk>"
|
| 19 |
+
}
|