chadchoquette2026's picture
mention_id -> entity_id for 24,577,430 non-person mentions (RevX-388)
271ffaf verified
|
Raw History Blame Contribute Delete
1.37 kB
metadata
license: cc0-1.0
pretty_name: Revolution Crossroads entity–occurrence join
tags:
  - named-entity-recognition
  - entity-resolution
  - history
  - american-revolution
configs:
  - config_name: default
    data_files: entities_occurrences_join.parquet

Revolution Crossroads: entity–occurrence join (non-person types)

Links each non-person mention in the occurrences dataset to the entity it belongs to.

Table Rows Columns
entities_occurrences_join 24,577,430 mention_id, entity_id
  • mention_id: the 16-hex ID of a mention in RevolutionCrossroads/RevX_NER_Entity_Occurrences (NER_v2.1). Every non-person mention appears exactly once.
  • entity_id: the entity in RevolutionCrossroads/RevX_Entities (e.g. RX0000001).

People are not included yet.

import polars as pl
join = pl.read_parquet("hf://datasets/RevolutionCrossroads/RevX_Entities_Occurrences_Join/entities_occurrences_join.parquet")
ents = pl.read_parquet("hf://datasets/RevolutionCrossroads/RevX_Entities/entities.parquet")
mentions_with_entity = join.join(ents, on="entity_id")

See RevolutionCrossroads/RevX_Entities for how the entities were grouped, the ID rules and the limits. Spellings are in RevolutionCrossroads/RevX_Entities_Variants.

Code: RevolutionCrossroads/RevX, pipelines/entities/graph/publish/export_other_types.py.