Update Readme
Browse files
README.md
CHANGED
@@ -57,6 +57,26 @@ Each instance in the dataset consists of:
|
|
57 |
|
58 |
This dataset is intended for research in semantic parsing and related tasks within the context of lexicographic data in the Wikidata Knowledge Graph. It can be used to train and evaluate models that convert natural language to SPARQL queries.
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
## Limitations
|
61 |
|
62 |
- The dataset focuses specifically on lexicographic data and may not generalize to other domains within Wikidata.
|
|
|
57 |
|
58 |
This dataset is intended for research in semantic parsing and related tasks within the context of lexicographic data in the Wikidata Knowledge Graph. It can be used to train and evaluate models that convert natural language to SPARQL queries.
|
59 |
|
60 |
+
## Load Dataset
|
61 |
+
|
62 |
+
Use the following commands to load the dataset as a pandas DataFrame:
|
63 |
+
|
64 |
+
#### Install datasets Library
|
65 |
+
```
|
66 |
+
pip install datasets
|
67 |
+
```
|
68 |
+
#### Load Dataset as a Pandas DataFrame
|
69 |
+
```
|
70 |
+
from datasets import load_dataset, Dataset
|
71 |
+
|
72 |
+
dataset = load_dataset(
|
73 |
+
"ksennr/lexicographicDataSPARQL",
|
74 |
+
data_files={"csv": "lexicographicDataWikidataSPARQL.csv"}
|
75 |
+
)
|
76 |
+
|
77 |
+
data = dataset["csv"].to_pandas()
|
78 |
+
```
|
79 |
+
|
80 |
## Limitations
|
81 |
|
82 |
- The dataset focuses specifically on lexicographic data and may not generalize to other domains within Wikidata.
|