cakiki's picture
Update README.md
daea1a6
metadata
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:

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)