Resolve keyword clash
Browse files- README.md +11 -11
- 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:
|
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 |
-
|
78 |
|
79 |
-
-
|
80 |
-
- `Latin`
|
81 |
-
- `AncientGreek`
|
82 |
-
- `Korean`
|
83 |
-
- `OldPersian`
|
84 |
-
- `Akkadian`
|
85 |
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
-
|
89 |
|
90 |
-
|
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"] == "
|
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":
|