QubitPi commited on
Commit
197443a
1 Parent(s): 4963e7a

Resolve keyword clash

Browse files
Files changed (2) hide show
  1. README.md +11 -11
  2. wiktionary/wiktextract/extract.py +1 -1
README.md CHANGED
@@ -26,7 +26,7 @@ configs:
26
  path: akkadian-wiktextract-data.jsonl
27
  - config_name: Graph
28
  data_files:
29
- - split: All
30
  path: word-definition-graph-data.jsonl
31
  tags:
32
  - Wiktionary
@@ -74,20 +74,20 @@ from datasets import load_dataset
74
  dataset = load_dataset("QubitPi/wiktionary-data", split="German")
75
  ```
76
 
77
- The available splits are
78
 
79
- - `German`
80
- - `Latin`
81
- - `AncientGreek`
82
- - `Korean`
83
- - `OldPersian`
84
- - `Akkadian`
85
 
86
- In addition, a separate split for graph data is offered:
 
 
 
 
 
87
 
88
- - `GraphData`
89
 
90
- This split contains all the languages and puts everything in a giant graph
91
 
92
  Development
93
  -----------
 
26
  path: akkadian-wiktextract-data.jsonl
27
  - config_name: Graph
28
  data_files:
29
+ - split: AllLanguage
30
  path: word-definition-graph-data.jsonl
31
  tags:
32
  - Wiktionary
 
74
  dataset = load_dataset("QubitPi/wiktionary-data", split="German")
75
  ```
76
 
77
+ There are __two__ data subsets:
78
 
79
+ 1. __Languages__ subset that contains the sub-data extraction of the following splits:
 
 
 
 
 
80
 
81
+ - `German`
82
+ - `Latin`
83
+ - `AncientGreek`
84
+ - `Korean`
85
+ - `OldPersian`
86
+ - `Akkadian`
87
 
88
+ 2. __Graph__ subset that is useful for constructing knowledge graphs:
89
 
90
+ - `AllLanguage`: all the languages in a giant graph
91
 
92
  Development
93
  -----------
wiktionary/wiktextract/extract.py CHANGED
@@ -72,7 +72,7 @@ def extract_data(wiktextract_data_path: str):
72
  if vocabulary["lang"] == "Ancient Greek":
73
  ancient_greek.write(json.dumps({"term": term, "part of speech": pos, "definitions": definitions, "audios": audios}))
74
  ancient_greek.write("\n")
75
- if vocabulary["lang"] == "korean":
76
  korean.write(json.dumps({"term": term, "part of speech": pos, "definitions": definitions, "audios": audios}))
77
  korean.write("\n")
78
  if vocabulary["lang"] == "Old Persian":
 
72
  if vocabulary["lang"] == "Ancient Greek":
73
  ancient_greek.write(json.dumps({"term": term, "part of speech": pos, "definitions": definitions, "audios": audios}))
74
  ancient_greek.write("\n")
75
+ if vocabulary["lang"] == "Korean":
76
  korean.write(json.dumps({"term": term, "part of speech": pos, "definitions": definitions, "audios": audios}))
77
  korean.write("\n")
78
  if vocabulary["lang"] == "Old Persian":