Datasets:
Update README.md
Browse filesUpdate from Round 2 Jason McInerney card.
103 unmodified lines1041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331347 unmodified lines14214314414514614714844 unmodified lines1931941951961971982 unmodified lines20120220320420520620720820921025 unmodified lines2362372382392402412422435 unmodified lines24925025125225325413 unmodified lines2682692702712722732742752762772782792802812825 unmodified lines28828929029129229329425 unmodified lines3203213223233243253263273283293303313325 unmodified lines338339340341342343344345346122 unmodified lines46947047147247347447562 unmodified lines53853954054154254354454544 unmodified lines590591592593594595596103 unmodified lines</tr><tr><th style="text-align:left;font-weight:normal;" scope="row">Smithsonian Insitution Revolutionary Era Collections</th><td>12,667</td><td>14,829</td><td>129,163</td></tr><tr><th style="text-align:left;font-weight:normal;" scope="row">NARA Revolutionary War Pension Files</th><td>49,065</td><td>1,291,962</td><td>14,794,537</td></tr><tr><th style="text-align:left;font-weight:normal;" scope="row">Library of Congress Chronicling America, 1770-1810</th><td>13,871</td><td>53,917</td><td>9,111,375</td></tr><tr><th style="text-align:left;" scope="row">Total</th><td><b>75,603</b></td><td><b>1,360,708</b></td><td><b>24,035,075</b></td></tr></table>The figures describe the source records and pages represented in this extraction and the number of entity occurrence rows produced. They are **not counts of distinct people, places, or other entities**.### Entity Types7 unmodified lines- `temporal_event` : A time reference without a determinable year, such as a season, day of the week, or month without a year.- `named_event` : A named event, such as a battle, treaty, Act of Congress, or constitutional amendment.- `named_vessel` : A named ship or other vessel, such as a brig, schooner, sloop, or packet.- 'norp' : A named nationality, ethnic or cultural group, religious or political group, or Indigenous people, nation, tribe or confederacy, including singular references to members such as an American. Where the text names a specific Indigenous people, only that name is extracted (Shawnee Indians gives Shawnee).### Relationship to Source Datasets44 unmodified linesThis dataset was created from three *Revolution Crossroads* collection datasets: [Smithsonian Revolutionary Era Collections](https://huggingface.co/datasets/RevolutionCrossroads/si_us_revolutionary_era_collections), [NARA Revolutionary War Pension Files](https://huggingface.co/datasets/RevolutionCrossroads/nara_revolutionary_war_pension_files), and [Library of Congress Chronicling America, 1770–1810](https://huggingface.co/datasets/RevolutionCrossroads/loc_chronicling_america_1770-1810). The NARA dataset, for example, provides the page-level pension records from which the pension text and source identifiers can be traced. The linked source dataset cards describe how those collections were assembled.For entity extraction, the project used positioned text blocks in [`RevX_OCR_results`](https://huggingface.co/datasets/RevolutionCrossroads/RevX_OCR_results), produced from the collections’ page images. Smithsonian catalogue text and EDAN documents from the [Smithsonian source dataset](https://huggingface.co/datasets/RevolutionCrossroads/si_us_revolutionary_era_collections) were also included. Those records contain written catalogue metadata rather than text read from an object image.Consecutive text blocks were grouped into windows of about 1,000 characters. Each window was sent to `gemma-4-12b-it` in a request constrained by a JSON schema. The preceding and following windows, along with the record title, were supplied as context; entities were extracted from the target window only.2 unmodified lines### Notes on Completeness26,026 requests returned no answer in the first pass. Every one of those windows was retried, and 18,988 succeeded. **7,038 windows remain unextracted, or 0.22 percent of all windows.** They are listed in `errors_12b_retry.jsonl`; entity occurrences in those windows are absent from this dataset.<table><caption style="text-align:left;"><b>First Pass Failures:</b></caption><tr><th scope="col">Failure Type</th><th scope="col">Windows Affected</th>25 unmodified linesAnother 421,378 requests completed without returning an entity. These are distinct from failed requests: the model returned an answer, but no entity occurrence was recorded for the window.Smithsonian coverage differs from the other collections. All 12,667 Smithsonian records contribute catalogue text, but only about 2,200 have a page image processed by the layout service. Block identifiers and bounding boxes are therefore present on about 12 percent of Smithsonian rows, compared with 100 percent of rows from the pension files and newspapers.## Data Collection and Processing### Processing Steps5 unmodified lines5. Each returned entity was located in the target window text and attributed to its source block, with character offsets where available. Repeated occurrences in the text were retained as separate rows.6. Operational fields were removed, dates and entity text were normalised, and duplicate extraction outputs within a window were removed.7. Rows from both passes were merged and written in document order. See [Row Order](#row-order).### Supporting Files Available13 unmodified lines</tr><tr><td><code>run_manifest_12b_retry.json</code></td><td>The corresponding provenance for the retry pass.</td></tr><tr><td><code>errors_12b_full.jsonl</code></td><td>The 26,026 requests that returned no answer in the first pass. Most were recovered on retry.</td></tr><tr><td><code>errors_12b_retry.jsonl</code></td><td>The 7,038 requests still unanswered after the retry. These identify the windows from which entity occurrences are absent.</td></tr></table>5 unmodified linesfrom datasets import load_datasetdataset_name = "RevolutionCrossroads/RevX_NER_Entity_Occurrencescommit_tag = "NER_v1"ds = load_dataset(dataset_name, "all", revision=commit_tag, split="train")```25 unmodified linesThis example ranks normalised person-name strings by the number of extraction windows in which they occur. It does not count distinct people. The `snapshot_download` call downloads the repository files locally before Polars scans them.### Date NormalisationDates were standardised after entity extraction where the text provided enough information to determine a year. The `iso_date_method` field records whether an ISO date came from the model or was derived or repaired during post-processing. Relative dates that could not be anchored, such as “the 3d instant,” were left unresolved rather than assigned a guessed date.The model classified some text without a determinable year as `calendar_date`. During processing, 2,357 such rows were changed to `temporal_event`. No rows were changed in the other direction.The `date_out_of_era` field flags 231,234 rows with a resolved year outside 1600 to 1860. These rows were retained because a flagged value may be a date in the source or an extraction error. Users can review or exclude them according to their purpose.### Quality Considerations5 unmodified linesThe checks completed for this release were internal consistency checks, not an evaluation of historical or extraction accuracy. Derived columns were recalculated and compared, row counts were checked across the published formats, and character offsets were checked against `block_text`. On 23 rows, the offsets do not reproduce `entity_text` because of line breaks across formatting boundaries. Case-sensitive text matching may also have discarded valid entities whose model response differed from the supplied text only in capitalisation; the effect on recall is unknown.Some correctly extracted text can still distort aggregate counts. In the pension files, printed introductions and form instructions recur across many files. A set of repeated text blocks accounts for 496,009 entity rows, or 3.4 percent of pension rows. These mentions appear in the scanned material, but they often describe the publication or form rather than an applicant. Counts of organizations, dates, and events are particularly affected.Text blocks also vary greatly in length. The longest observed blocks contain 1,499 characters for Smithsonian, 23,825 for pension files, and 27,388 for Chronicling America. Code that displays or highlights `block_text` should allow for long values. The per-collection maxima are recorded in the run manifests.## Dataset Structure122 unmodified lines*Example:* `united states`- **entity_type** *(large_string)*Type assigned by the model. The eight available types are defined below.*Example:* `geographic_location`- **confidence** *(float32)*62 unmodified lines## Source Data## Source Data### Original Data ProducersThe materials represented here come from three institutions. The linked *Revolution Crossroads* source dataset cards provide more detail about each collection’s scope, metadata, provenance, and rights.44 unmodified lines- **Model confidence is limited as a filter.** Many `confidence` values are near the top of the range, and the values have not been calibrated against verified results. A high value should not be read as confirmation that an extraction is correct.- **Source positions have known exceptions.** On 23 rows, the character offsets do not reproduce `entity_text`. Formatting within some text blocks can also affect precise highlighting. The surrounding text and original image remain available for inspection.### Recommendations103 unmodified lines1041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331347 unmodified lines14214314414514614714844 unmodified lines1931941951961971981992002 unmodified lines20320420520620720820921021121221325 unmodified lines2392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003015 unmodified lines30730830931031131231313 unmodified lines3273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563575 unmodified lines36336436536636736836925 unmodified lines3953963973983994004014024034044054064074084094104115 unmodified lines417418419420421422423424425426427428429122 unmodified lines55255355455555655755862 unmodified lines62162262362462562644 unmodified lines671672673674675676677678679680681682683684685686687103 unmodified lines</tr><tr><th style="text-align:left;font-weight:normal;" scope="row">Smithsonian Insitution Revolutionary Era Collections</th><td>12,191</td><td>14,090</td><td>129,361</td></tr><tr><th style="text-align:left;font-weight:normal;" scope="row">NARA Revolutionary War Pension Files</th><td>77,736</td><td>2,046,379</td><td>25,964,546</td></tr><tr><th style="text-align:left;font-weight:normal;" scope="row">Library of Congress Chronicling America, 1770-1810</th><td>19,431</td><td>76,171</td><td>12,318,433</td></tr><tr><th style="text-align:left;" scope="row">Total</th><td><b>109,358</b></td><td><b>2,136,640</b></td><td><b>38,412,3405</b></td></tr></table>The figures describe the source records and pages that contribute at least one entity row to extraction and the number of entity occurrence rows produced. They are **not counts of distinct people, places, or other entities**.### Entity Types7 unmodified lines- `temporal_event` : A time reference without a determinable year, such as a season, day of the week, or month without a year.- `named_event` : A named event, such as a battle, treaty, Act of Congress, or constitutional amendment.- `named_vessel` : A named ship or other vessel, such as a brig, schooner, sloop, or packet.- `norp` : A named nationality, ethnic or cultural group, religious or political group, or Indigenous people, nation, tribe or confederacy, including singular references to members such as "an American". Where the text names a specific Indigenous people, only that name is extracted ("Shawnee Indians" gives "Shawnee").### Relationship to Source Datasets44 unmodified linesThis dataset was created from three *Revolution Crossroads* collection datasets: [Smithsonian Revolutionary Era Collections](https://huggingface.co/datasets/RevolutionCrossroads/si_us_revolutionary_era_collections), [NARA Revolutionary War Pension Files](https://huggingface.co/datasets/RevolutionCrossroads/nara_revolutionary_war_pension_files), and [Library of Congress Chronicling America, 1770–1810](https://huggingface.co/datasets/RevolutionCrossroads/loc_chronicling_america_1770-1810). The NARA dataset, for example, provides the page-level pension records from which the pension text and source identifiers can be traced. The linked source dataset cards describe how those collections were assembled.The entity occurrences come from two rounds of text recognition. Round 1 (`12b_full`) holds the 24,035,075 occurrences published as commit tag `NER_v1`. Round 2 (`12b_full_2`) adds 14,377,265 rows from documents OCR'd in the second round, extracted with the same model and the same instructions plus one new type, `norp`, for nationalities and other groups of people.For entity extraction, the project used positioned text blocks in [`RevX_OCR_results`](https://huggingface.co/datasets/RevolutionCrossroads/RevX_OCR_results), produced from the collections’ page images. Smithsonian catalogue text and EDAN documents from the [Smithsonian source dataset](https://huggingface.co/datasets/RevolutionCrossroads/si_us_revolutionary_era_collections) were also included. Those records contain written catalogue metadata rather than text read from an object image.Consecutive text blocks were grouped into windows of about 1,000 characters. Each window was sent to `gemma-4-12b-it` in a request constrained by a JSON schema. The preceding and following windows, along with the record title, were supplied as context; entities were extracted from the target window only.2 unmodified lines### Notes on Completeness#### Round126,026 requests returned no answer in the first pass. Every one of those windows was retried, and 18,988 succeeded. **7,038 windows remain unextracted, or 0.22 percent of all windows.** They are listed in `errors_12b_retry.jsonl`; entity occurrences in those windows are absent from this dataset.<table><caption style="text-align:left;"><b>First Round Failures</b></caption><tr><th scope="col">Failure Type</th><th scope="col">Windows Affected</th>25 unmodified linesAnother 421,378 requests completed without returning an entity. These are distinct from failed requests: the model returned an answer, but no entity occurrence was recorded for the window.#### Round2The Round 2 extractor makes up to two attempts per window and records errors encountered on the second attempt. Of 1,720,282 windows, 577 returned no aswer in the first pass. Every window was retried, and 205 windows and 6,804 rows succeeded.<table><caption style="text-align:left;"><b>Second Round Failures</b></caption><tr><th scope="col">Failure Type</th><th scope="col">Windows Affected</th></tr><tr><th style="text-align:left;" scope="row">400 Bad Request</th><td>348</td></tr><tr><th style="text-align:left;" scope="row">No answer within 600 seconds</th><td>226</td></tr><tr><th style="text-align:left;" scope="row">Not valid JSON</th><td>3</td></tr></table>**372 windows remain unextracted, or 0.02 percent of Round 2 windows** after the retry. They are listed in `errors_r2_12b_norp_retry.jsonl`.<table><caption style="text-align:left;"><b>Second Round Failures after Retry</b></caption><tr><th scope="col">Failure Type</th><th scope="col">Windows Affected</th></tr><tr><th style="text-align:left;" scope="row">Token output allowance and prompt exceeded token context of model server</th><td>238</td></tr><tr><th style="text-align:left;" scope="row">No answer within 600 seconds</th><td>130</td></tr><tr><th style="text-align:left;" scope="row">Not valid JSON</th><td>4</td></tr></table>The timeouts occur mostly on short pension windows, which suggests the model was producing repeating text that never ended. The output does not keep the partial answer, so this is unconfirmed. The remaining windows have not been investigated further.In both rounds, many requests completed and returned no entity. That is expected: many pages are blank, near-blank, or hold only form scaffolding.#### On CoverageSmithsonian coverage differs from the other collections. All 12,667 Smithsonian records contribute catalogue text, but only about 2,200 have a page image processed by the layout service. Block identifiers and bounding boxes are therefore present on about 12 percent of Smithsonian rows, compared with 100 percent of rows from the pension files and newspapers.#### On the `norp` Entity TypeThe `norp` entity type was introduced in Round 2 for references to nationalities, ethnic or cultural groups, religious or political groups, and Indigenous peoples. Round 1 did not include this type, so similar references may appear under `person`, `organization`, or `geographic_location`.Work is underway to address these classifications in the Round 1 data. Until that update is available, users comparing or combining the rounds should account for this difference, particularly when interpreting counts by entity type. As with other entity types, `norp` assignments may contain errors.## Data Collection and Processing### Processing Steps5 unmodified lines5. Each returned entity was located in the target window text and attributed to its source block, with character offsets where available. Repeated occurrences in the text were retained as separate rows.6. Operational fields were removed, dates and entity text were normalised, and duplicate extraction outputs within a window were removed.7. Rows from both passes were merged and written in document order. See [Row Order](#row-order).8. Round 1 rows were given run_id `12b_full` and Round 2 rows were appended after them in each collection, with run_id `12b_full_2`.### Supporting Files Available13 unmodified lines</tr><tr><td><code>run_manifest_12b_retry.json</code></td><td>The corresponding provenance for the first round retry pass.</td></tr><tr><td><code>errors_12b_full.jsonl</code></td><td>The 26,026 requests that returned no answer in the first round first pass. Most were recovered on retry.</td></tr><tr><td><code>errors_12b_retry.jsonl</code></td><td>The 7,038 requests still unanswered after the first round retry. These identify the windows from which entity occurrences are absent.</td></tr><tr><td><code></code>run_manifest_r2_12b_norp.json</td><td>Provenance for the second pass with added <code>norp</code> entity type, including source repositories and commits, model, measured block and window maxima, and counts for each collection.</td></tr><tr><td><code>run_manifest_r2_12b_norp_retry.json</code></td><td>The corresponding provenance for the second round retry pass.</td></tr><tr><td><code>errors_r2_12b_norp.jsonl</code></td><td>The 577 requests that returned no answer in the second round first pass, with the server's reason.</td></tr><tr><td><code>errors_r2_12b_norp_retry.jsonl</code></td><td>The 372 round 2 requests still unanswered after the second round retry. This is the list of round 2 windows absent from the dataset.</td></tr></table>5 unmodified linesfrom datasets import load_datasetdataset_name = "RevolutionCrossroads/RevX_NER_Entity_Occurrencescommit_tag = "NER_v2"ds = load_dataset(dataset_name, "all", revision=commit_tag, split="train")```25 unmodified linesThis example ranks normalised person-name strings by the number of extraction windows in which they occur. It does not count distinct people. The `snapshot_download` call downloads the repository files locally before Polars scans them.#### Available Data Versions- [`NER_v1`](https://huggingface.co/datasets/RevolutionCrossroads/RevX_NER_Entity_Occurrences/tree/NER_v1) : Initial NER Round 1 on first round OCR outputs.- [`NER_v2`](https://huggingface.co/datasets/RevolutionCrossroads/nara_revolutionary_war_pension_files_PDFs/tree/new_OCR_v1) : Adds Datalab AI-generated OCR while preserving the PDF-level dataset structure.### Date NormalisationDates were standardised after entity extraction where the text provided enough information to determine a year. The `iso_date_method` field records whether an ISO date came from the model or was derived or repaired during post-processing. Relative dates that could not be anchored, such as “the 3d instant,” were left unresolved rather than assigned a guessed date.The model classified some text without a determinable year as `calendar_date`. During post-processing, 2,357 such rows were changed to `temporal_event`. No rows were changed in the other direction.The `date_out_of_era` field flags 425,310 rows with a resolved year outside 1600 to 1860. These rows were retained because a flagged value may be a date in the source or an extraction error. Users can review or exclude them according to their purpose.### Quality Considerations5 unmodified linesThe checks completed for this release were internal consistency checks, not an evaluation of historical or extraction accuracy. Derived columns were recalculated and compared, row counts were checked across the published formats, and character offsets were checked against `block_text`. On 23 rows, the offsets do not reproduce `entity_text` because of line breaks across formatting boundaries. Case-sensitive text matching may also have discarded valid entities whose model response differed from the supplied text only in capitalisation; the effect on recall is unknown.Formatting can affect text grouping. Entity text retains markup from the source OCR, including HTML tags and Markdown characters. Superscript tags appear in 143,350 rows, mostly from pension files, such as `Mass<sup>ts</sup>`. Currently, the markup also remains in `entity_text_normalised`, so equivalent strings may group separately. A future update is planned to remove markup from the normalized field while preserving it in `entity_text`.Matching during extraction was case-sensitive. Model responses that differed from the supplied text only in capitalization were discarded, which may have excluded valid mentions. The effect on recall has not yet been measured.Some correctly extracted text can still distort aggregate counts. In the pension files, printed introductions and form instructions recur across many files. A set of repeated text blocks accounts for 496,009 entity rows, or 3.4 percent of pension rows. These mentions appear in the scanned material, but they often describe the publication or form rather than an applicant. Counts of organizations, dates, and events are particularly affected.Text blocks also vary greatly in length. The longest observed blocks in Round 1 contain 1,499 characters for Smithsonian, 23,825 for Pension Files, and 27,388 for Chronicling America. The longest observed block Round 2 is 97,899 characters from the Pension Files. Code that displays or highlights `block_text` should allow for long values. The per-collection maxima are recorded in the run manifests.## Dataset Structure122 unmodified lines*Example:* `united states`- **entity_type** *(large_string)*Type assigned by the model. The eight available types are defined above. The `norp` type only occurs in Round 2 rows.*Example:* `geographic_location`- **confidence** *(float32)*62 unmodified lines## Source Data### Original Data ProducersThe materials represented here come from three institutions. The linked *Revolution Crossroads* source dataset cards provide more detail about each collection’s scope, metadata, provenance, and rights.44 unmodified lines- **Model confidence is limited as a filter.** Many `confidence` values are near the top of the range, and the values have not been calibrated against verified results. A high value should not be read as confirmation that an extraction is correct.- **Source positions have known exceptions.** On 33 rows, the character offsets do not reproduce `entity_text`. Formatting within some text blocks can also affect precise highlighting. The surrounding text and original image remain available for inspection.- **Entity types differ between rounds.** `norp` was added in Round 2; similar references in Round 1 may be classified as people, organizations, or locations. In round 2, `norp` is sometimes applied loosely and may include some ranks or offices. Remediation is underway. Account for this difference when comparing counts or combining rounds.- **In-block highlighting is unreliable.** Character positions inside a block may drift when the block text contains formatting markers, however, the entity text is correct.- **Entity contains formatting markup.** HTML superscript tags and other formatting markup currently appear in both `entity_text` and `entity_text_normalised`. See [Quality Considerations](#quality-considerations).- **Uneven coverage of Smithsonian material.** Most Smithsonian rows come from catalogue metadata rather than from text on an object.- **Skewed Pension Files entity counts.** About 2.5 percent of rows that represent enitites mentioned in Pension Files records are derived from printed form text that is repeated across thousands of microfilm files. This exaggerates frequency counts for certain entities. See [Quality Considerations](#quality-considerations).### Recommendations
README.md+117-26