File size: 1,155 Bytes
d0fc24a
 
30a7324
 
9966c4a
 
 
 
 
cebe21e
9966c4a
 
 
 
 
 
 
cebe21e
 
9966c4a
 
cebe21e
 
 
9966c4a
 
 
 
cebe21e
9966c4a
740b0a9
 
 
 
 
 
 
 
 
 
 
 
 
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
---
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}")
```