nltk-data-hub commited on
Commit
2f211da
·
verified ·
1 Parent(s): a9093e7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: en
4
+ data_files:
5
+ - split: words
6
+ path: data/en/words.parquet
7
+ - config_name: en-basic
8
+ data_files:
9
+ - split: words
10
+ path: data/en-basic/words.parquet
11
+ license: other
12
+ task_categories:
13
+ - text-classification
14
+ - token-classification
15
+ pretty_name: NLTK Word Lists
16
+ ---
17
+
18
+ # NLTK Word Lists
19
+
20
+ English word lists from [NLTK](https://www.nltk.org/).
21
+
22
+ | Config | Description |
23
+ |---|---|
24
+ | `en` | Full English word list (~235K words) |
25
+ | `en-basic` | Basic English vocabulary (850 core words) |
26
+
27
+ Each config is a separate HF dataset. Each row is one word.
28
+
29
+ ## Usage
30
+
31
+ ```python
32
+ from datasets import load_dataset
33
+
34
+ ds = load_dataset("nltk-data-hub/words", "en")
35
+ words = ds["words"]["word"]
36
+
37
+ ds_basic = load_dataset("nltk-data-hub/words", "en-basic")
38
+ basic = ds_basic["words"]["word"]
39
+ ```
40
+
41
+ ## Schema
42
+
43
+ | Column | Type | Description |
44
+ |---|---|---|
45
+ | `word` | `string` | The word |
46
+
47
+ ## Configs
48
+
49
+ | Config | Count |
50
+ |---|---|
51
+ | en | 235,886 |
52
+ | en-basic | 850 |
53
+
54
+ ## Source
55
+
56
+ Originally distributed as part of `nltk.download('words')`.
57
+ Converted to Parquet for use with the HuggingFace `datasets` library.
58
+
59
+ ## Citation
60
+
61
+ ```bibtex
62
+ @book{nltk,
63
+ author = {Bird, Steven and Klein, Ewan and Loper, Edward},
64
+ title = {Natural Language Processing with Python},
65
+ publisher = {O'Reilly Media},
66
+ year = {2009},
67
+ url = {https://www.nltk.org/}
68
+ }
69
+ ```