File size: 958 Bytes
0d0f91e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
daea1a6
 
 
 
 
 
 
 
 
 
 
 
 
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
---
dataset_info:
  features:
  - name: language
    dtype: string
  - name: keywords
    sequence: string
  splits:
  - name: train
    num_bytes: 20307
    num_examples: 36
  download_size: 8838
  dataset_size: 20307
---
# Dataset Card for "programming-languages-keywords"

Structured version of https://github.com/e3b0c442/keywords

Generated using:
```python
r = requests.get("https://raw.githubusercontent.com/e3b0c442/keywords/main/README.md")
keywords = r.text.split("### ")[1:]
keywords = [i for i in keywords if not i.startswith("Sources")]
keywords = {i.split("\n")[0]:[j for j in re.findall("[a-zA-Z]*", i.split("\n",1)[1]) if j] for i in keywords}
keywords = pd.DataFrame(pd.Series(keywords)).reset_index().rename(columns={"index":"language", 0:"keywords"})
keywords['language'] = keywords['language'].str.split("\) ").str[0]
keywords['keywords'] = keywords['keywords'].apply(lambda x: sorted(list(set(x))))
ds = Dataset.from_pandas(keywords)
```