Views
No views yet
19c_roberta_v4_final)ca_19c_clean.txt (extracted from the Library of Congress Chronicling America collection)ſ -> s)| Rank | Newspaper Title | Location | LCCN | Pages Kept |
|---|---|---|---|---|
| 1. | The New York Herald | New York, N.Y. | sn83030313 | 120,231 |
| 2. | New-York Tribune | New York, N.Y. | sn83030214 | 118,025 |
| 3. | Alexandria Gazette | Alexandria, D.C./Va. | sn85025007 | 74,040 |
| 4. | The Portland Daily Press | Portland, Me. | sn83016025 | 70,584 |
| 5. | Daily Kennebec Journal | Augusta, Me. | sn82014248 | 57,291 |
| 6. | New-York Daily Tribune | New York, N.Y. | sn83030213 | 56,559 |
| 7. | Wheeling Register | Wheeling, W.Va. | sn86092518 | 51,361 |
| 8. | Worcester Daily Spy | Worcester, Mass. | sn83021205 | 51,210 |
| 9. | Wheeling Sunday Register | Wheeling, W.Va. | sn86092523 | 50,267 |
| 10. | The Morning News | Savannah, Ga. | sn86063034 | 49,202 |
transformers library.pip install transformers torch1from transformers import AutoModelForMaskedLM, AutoTokenizer
2
3repo_id = "ambrosfitz/19c_roberta_v4_newspaper"
4
5# Load tokenizer and model
6tokenizer = AutoTokenizer.from_pretrained(repo_id)
7model = AutoModelForMaskedLM.from_pretrained(repo_id)
8
9# Example fill-mask task
10from transformers import pipeline
11fill_mask = pipeline("fill-mask", model=model, tokenizer=tokenizer)
12result = fill_mask("The president gave a speech to the [MASK].")
13print(result)