|
--- |
|
license: apache-2.0 |
|
language: |
|
- en |
|
--- |
|
# Dataset Card for TXT/SMS Abbreviations |
|
|
|
<!-- Provide a quick summary of the dataset. --> |
|
|
|
A list of all sms/text speak abbreviations |
|
|
|
## Dataset Details |
|
|
|
### Dataset Description |
|
|
|
<!-- Provide a longer summary of what this dataset is. --> |
|
|
|
A curated list of abbreviations commonly used in text messages and gaming chat and other places. We have tried to remove explanations and explicitly put a full expansion of the abbreviation. |
|
Be careful - some items are whole words already. |
|
|
|
|
|
- **Curated by:** Will Wade |
|
- **Language(s) (NLP):** English |
|
- **License:** Apache-2 |
|
|
|
|
|
## Uses |
|
|
|
Use as a training set for abbreviations or as part of a GEC task |
|
|
|
```python |
|
import csv |
|
# Load abbreviations and their expansions from sms.csv into a dictionary |
|
abbreviations_dict = {} |
|
with open('sms.csv', mode='r', encoding='utf-8') as infile: |
|
# Specify the delimiter as a tab character |
|
reader = csv.reader(infile, delimiter='\t') |
|
for row in reader: |
|
if len(row) >= 2: |
|
abbreviations_dict[row[0].strip().upper()] = row[1].strip() |
|
else: |
|
print(f"Skipping malformed row: {row}") |
|
``` |
|
|