Views
No views yet
dccuchile/bert-base-spanish-wwm-casedPER and LOC → ["O","B-PER","I-PER","B-LOC","I-LOC"]“Representación del conocimiento para emergencias del ECU-911 mediante PLN, ontologías OWL y reglas SWRL.”
dccuchile/bert-base-spanish-wwm-casedmodel_max_length (padding to max length)O, B-PER, I-PER, B-LOC, I-LOCO=30,132, B-LOC=1,643, I-LOC=1,617, B-PER=421, I-PER=419.Privacy/Ethics. Data should be anonymized and free of PII. Do not deploy on personal/live data without consent and compliance with local regulation.
-100.learning_rate = 2e-5num_train_epochs = 3per_device_train_batch_size = 8per_device_eval_batch_size = 8weight_decay = 0.01evaluation_strategy = "epoch", save_strategy = "epoch"load_best_model_at_end = true (por eval_loss)DataCollatorForTokenClassification (padding a max_length)sklearn.metrics, excluding -100 positions.)PER and LOC entities.1from transformers import pipeline
2
3ner = pipeline(
4 "token-classification",
5 model="dannyLeo16/ner_model_bert_base",
6 tokenizer="dannyLeo16/ner_model_bert_base",
7 aggregation_strategy="simple"
8)
9text = "Se reporta accidente en la Av. de las Américas con dos personas heridas."
10ner(text)