File size: 2,132 Bytes
9effeb8 e9781b2 d89870d e9781b2 d89870d e9781b2 d89870d e9781b2 d89870d e9781b2 872f92d d89870d e9781b2 d89870d e9781b2 d89870d e9781b2 d89870d e9781b2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | ---
configs:
- config_name: cities
data_files:
- split: train
path: cities/train-*
- split: validation
path: cities/validation-*
- split: test
path: cities/test-*
---
# CIS 5300 Language Models Dataset
Dataset for Homework 3 of CIS 5300 (Natural Language Processing) at Penn.
## Cities config
Country-of-origin classification over short city-name strings, drawn from
nine countries (Afghanistan, China, Germany, Finland, France, India, Iran,
Pakistan, South Africa).
```python
from datasets import load_dataset
cities = load_dataset("CCB/cis5300-language-models", "cities")
```
| Split | Rows | Has labels? |
|--------------|--------|-------------|
| `train` | 12,392 | yes |
| `validation` | 1,548 | yes |
| `test` | 1,531 | **no** (students predict) |
Each row has `city`, `country` (ISO code), and `country_name`. For the
`test` split, `country` and `country_name` are empty strings -- ground
truth is held back so students must submit predictions for grading.
## Raw corpus files
For character-level language modeling and cross-domain perplexity work:
| File | Size | Description |
|------|------|-------------|
| `shakespeare_input.txt` | 4.5 MB | Complete Shakespeare works |
| `shakespeare_sonnets.txt` | 9 KB | Held-out Shakespeare sonnets |
| `modern_english_sample.txt` | 4.4 KB | Modern-English prose for cross-domain perplexity |
Fetch with `huggingface_hub.hf_hub_download(..., repo_type="dataset")`.
## Licensing and attribution
- `shakespeare_input.txt` and `shakespeare_sonnets.txt` are in the public domain.
- `modern_english_sample.txt` is an excerpt from the English Wikipedia article
"Natural language processing" (https://en.wikipedia.org/wiki/Natural_language_processing),
used under the Creative Commons Attribution-ShareAlike 4.0 license
(https://creativecommons.org/licenses/by-sa/4.0/). The excerpt covers the
article's introduction and history sections, with Wikipedia section headers
removed so the text reads as continuous prose. See ATTRIBUTIONS.md for details.
- The `cities` config is released under CC BY 4.0.
|