Spanish occupation entity recognition (ProfNER)

nlp
bio-nlp/spanish-occupation-entity-recognition Task: token-classification Visibility: PUBLIC
OverviewLeaderboard

Leaderboard

Entity precision, PROFESION + SITUACION_LABORAL (token probe)

↑ higher is better · probe · atlas-n100-v1

Share of the probe's predicted profession and employment-status spans that are exact annotated spans of the same type (same strict IOB2 span matching and the same per-sentence counts as `entity_f1`); 0 when nothing is predicted.

Best in the catalogue: 1.000 (the best visible result here, not a state of the art). Ranks are the server's: ties share a rank. A ≠ marks a row whose n differs from the board's usual n (100). Floors are trivial baselines scored on the same items, shown unranked.

# Model Value 95% CI n Source Overlap
1 bio-nlp/bio-clinicalbert 1.000 best [0.000, 1.000] 100 reproduced none declared
2 bio-nlp/biomednlp-biomedbert-base-uncased-abstract-fulltext 0.769 [0.375, 1.000] 100 reproduced none declared
3 bio-nlp/roberta-base-biomedical-es 0.767 [0.550, 0.938] 100 reproduced none declared
4 bio-nlp/biomedlm 0.733 [0.540, 0.879] 100 reproduced none declared
5 bio-nlp/sapbert-from-roberta-base-biomedical-clinical-es 0.700 [0.458, 0.897] 100 reproduced none declared
6 bio-nlp/biomedvlp-cxr-bert-specialized 0.667 [0.332, 1.000] 100 reproduced none declared
6 bio-nlp/scibert-scivocab-uncased 0.667 [0.400, 0.875] 100 reproduced none declared
8 bio-nlp/pubmedbert-base-embeddings 0.636 [0.429, 1.000] 100 reproduced none declared
9 bio-nlp/clinicalbert 0.625 [0.381, 0.846] 100 reproduced unknown
10 bio-nlp/biomedical-ner-all 0.600 [0.250, 0.889] 100 reproduced none declared
11 bio-nlp/biogpt-large 0.538 [0.273, 0.800] 100 reproduced none declared
12 bio-nlp/clinical-assertion-negation-bert 0.500 [0.000, 1.000] 100 reproduced none declared
12 bio-nlp/sapbert-from-pubmedbert-fulltext 0.500 [0.000, 1.000] 100 reproduced none declared
14 bio-nlp/bert-base-uncased-clinical-ner 0.421 [0.167, 0.632] 100 reproduced none declared
15 bio-nlp/biobert-base-cased-v1-2 0.400 [0.000, 1.000] 100 reproduced none declared
16 bio-nlp/s-pubmedbert-medquad 0.000 [0.000, 0.000] 100 reproduced unknown
Secondary metrics (1) · probe · context, not ranked

Entity macro F1, PROFESION + SITUACION_LABORAL (token probe)

↑ higher is better · probe

Unweighted mean of the strict span F1 of PROFESION and SITUACION_LABORAL (seqeval average="macro", over the types present in the annotations or the predictions).

Model Value 95% CI n Source Overlap
bio-nlp/roberta-base-biomedical-es 0.329 best [0.250, 0.762] 100 reproduced none declared
bio-nlp/biomedlm 0.314 [0.233, 0.741] 100 reproduced none declared
bio-nlp/sapbert-from-roberta-base-biomedical-clinical-es 0.300 [0.207, 0.755] 100 reproduced none declared
bio-nlp/clinicalbert 0.234 [0.143, 0.594] 100 reproduced unknown
bio-nlp/biomednlp-biomedbert-base-uncased-abstract-fulltext 0.189 [0.071, 0.546] 100 reproduced none declared
bio-nlp/scibert-scivocab-uncased 0.182 [0.095, 0.507] 100 reproduced none declared
bio-nlp/pubmedbert-base-embeddings 0.137 [0.048, 0.400] 100 reproduced none declared
bio-nlp/bert-base-uncased-clinical-ner 0.136 [0.053, 0.407] 100 reproduced none declared
bio-nlp/biogpt-large 0.132 [0.062, 0.370] 100 reproduced none declared
bio-nlp/biomedvlp-cxr-bert-specialized 0.122 [0.027, 0.381] 100 reproduced none declared
bio-nlp/biomedical-ner-all 0.120 [0.035, 0.400] 100 reproduced none declared
bio-nlp/biobert-base-cased-v1-2 0.044 [0.000, 0.178] 100 reproduced none declared
bio-nlp/bio-clinicalbert 0.024 [0.000, 0.111] 100 reproduced none declared
bio-nlp/clinical-assertion-negation-bert 0.024 [0.000, 0.140] 100 reproduced none declared
bio-nlp/sapbert-from-pubmedbert-fulltext 0.024 [0.000, 0.130] 100 reproduced none declared
bio-nlp/s-pubmedbert-medquad 0.000 [0.000, 0.000] 100 reproduced unknown

Protocol

What is measured. Finding mentions of professions ("enfermera", "Presidente") and employment statuses ("desempleados") in Spanish tweets, with exact boundaries: occupational exposure mining for public health.

Data. ProfNER (Miranda-Escalada et al., SMM4H 2021 task 7): 10,000 Spanish COVID-19 tweets annotated with four types, of which the gold training (6,000) and validation (2,000) tweets were released, here in the BIO files of Biomedical-TeMU/ProfNER_corpus_NER (spaCy es_core_news_sm tokens with character offsets). The validation file is the test pool and the training file the train pool; the shared task's test labels were never published.

Types. PROFESION and SITUACION_LABORAL, the two types the ProfNER NER subtask evaluated (2,163 and 349 mentions over the 8,000 tweets); ACTIVIDAD and FIGURATIVA (a few dozen mentions) are tagged O. An I- tag orphaned by that removal begins a mention. Gold words are the corpus' tokens; the text given to models is rebuilt from their offsets (one space where tokens were not adjacent).

Items. 100 test tweets and 500 train tweets by seed-hash rank. Only 23 % of tweets mention a profession or status: the 100 test tweets hold 43 mentions (40 PROFESION, 3 SITUACION_LABORAL) in 24 tweets, the 500 train tweets 166.

Probe (entity_f1_probe; capability embed.text.tokens, pooling word_mean). One vector per gold word (mean of last-layer sub-word states); a logistic head over the 5 IOB2 tags is fit on the words of the 500 train tweets and tags each test word independently; an I-X after O starts a mention (conlleval-style repair).

Metric. Strict micro F1 over (type, first word, last word) mentions, pooled over the 100 tweets. 95 % bootstrap interval over tweets, 1,000 resamples.

Caveats (exc). With 43 test mentions the interval is wide; the benchmark is P1 and ranks encoders coarsely. The hub's Spanish models (roberta-base-biomedical-es, SapBERT-es) were pretrained on Spanish biomedical and clinical text, not on tweets; English encoders see Spanish through their sub-word vocabulary only. No zero-shot protocol: no hub model has a profession NER head.

Precision, recall and macro F1 (entity_precision_probe, entity_recall_probe, entity_macro_f1_probe; metrics review). ProfNER reports strict micro precision, recall and F1 on exact spans; precision and recall come from the same span matching as the F1 (0 precision when nothing is predicted), and the macro F1 is the unweighted mean of the PROFESION and SITUACION_LABORAL F1. The per-type values are stored with each result.

Data

  • profner: hf_dataset Biomedical-TeMU/ProfNER_corpus_NER at revision de9bf1404880f4b7225e1cc0e9268192e57fefca, licence cc-by-4.0, catalogued as bio-nlp/profner-corpus-ner

Subset

  • seed 20261006
  • test: 100 item(s)
  • train: 500 item(s)
  • results at atlas-n100-v1 use subset 6a64cf58f0f13fda

Metrics

  • entity_f1_probe — Entity F1, PROFESION + SITUACION_LABORAL (token probe); protocol probe; higher is better; range [0.0, 1.0]; 95% bootstrap CI, 1000 resamples
  • entity_precision_probe — Entity precision, PROFESION + SITUACION_LABORAL (token probe); protocol probe; higher is better; range [0.0, 1.0]; 95% bootstrap CI, 1000 resamples
  • entity_recall_probe — Entity recall, PROFESION + SITUACION_LABORAL (token probe); protocol probe; higher is better; range [0.0, 1.0]; 95% bootstrap CI, 1000 resamples
  • entity_macro_f1_probe — Entity macro F1, PROFESION + SITUACION_LABORAL (token probe); protocol probe; higher is better; range [0.0, 1.0]; 95% bootstrap CI, 1000 resamples

Sample

Two training tweets (input: the tweet and its words; expected output: one IOB2 tag per word, shown as the mentions they form):

item_idtweetmentions
profner-1243654656372494339Primera demanda contra el Govern por el coronavirus. El Sindicato de Médicos denuncia a Salud por “poner en riesgo” a los profesionales https://t.co/KFPi9rT5OCPROFESION: Médicos; PROFESION: profesionales
profner-1246759619873198080¡INDIGNANTE! 📢 La policía nacional ha permitido que esto tuviera lugar esta mañana en #Madrid sin autorización de ningún tipo. Es evidente que la ley no es igual para todos. #Covid_19 #EsteVirusLoParamosUnidos #QuedateEnCasa #PoliciaNacional #CoronavirusARV @policia https://t.co/La8lq9crH5PROFESION: policía nacional; PROFESION: PoliciaNacional; PROFESION: @policia

policía nacional is two words tagged B-PROFESION I-PROFESION; hashtags and handles naming a profession are mentions too.