Downloads · 30 days
16
4% of all-time downloads
dell-research-harvard/byline-detection
byline-detection is a token classification model from dell-research-harvard. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as cc-by-4.0.
bylinedetection is a fine-tuned DistilBERT token classification model, which tags bylines and datelines in news articles.
Downloads · 30 days
16
4% of all-time downloads
All-time downloads
383
Public
Repo size
522 MB
Likes
1
Public
Click a slice to open those files.
.bin261 MB · 100%
From the Hugging Face model README
byline_detection is a fine-tuned DistilBERT token classification model, which tags bylines and datelines in news articles.
It is trained to deal with OCR noise.
You can use this model with Transformers pipeline for NER.
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("dell-research-harvard/byline-detection")
model = AutoModelForTokenClassification.from_pretrained("dell-research-harvard/byline-detection")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "NEW ORLEANS, (UP) — The Roman Catholic Church, through its leaders in the United States today appealed "
ner_results = nlp(example)
print(ner_results)
This model was trained on historical news and may reflect biases from a specific period of time. It may also not generalise well to other setting. Additionally, the model occasionally tags subword tokens as entities and post-processing of results may be necessary to handle those cases.
This model was fine-tuned on historical English-language news that had been OCRd from American newspapers.
| Dataset | Count |
|---|---|
| Train | 1,392 |
| Dev | 464 |
| Test | 464 |
The data was used to fine-tune a DistilBERT model at a learning rate of 2e−5 with a batch size of 16 for 25 epochs.
| Statistic | Result |
|---|---|
| F1 | 0.96 |
This model card was influence by that of dslim/bert-base-NER
If you use this model, you can cite the following paper:
@misc{silcock2024newswirelargescalestructureddatabase,
title={Newswire: A Large-Scale Structured Database of a Century of Historical News},
author={Emily Silcock and Abhishek Arora and Luca D'Amico-Wong and Melissa Dell},
year={2024},
eprint={2406.09490},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2406.09490},
}
We applied this model to a century of historical news articles, and georeference the bylines. You can see them all in the NEWSWIRE dataset.