ksennr commited on
Commit
dbc38fa
·
verified ·
1 Parent(s): 039ea50

added train test split

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -53,6 +53,9 @@ Each instance in the dataset consists of:
53
  2. *template_name*: A string containing the corresponding identifier for the template used to generate the tuple.
54
  3. *template*: A string containing the corresponding SPARQL query
55
 
 
 
 
56
  ## Intended Use
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.
 
53
  2. *template_name*: A string containing the corresponding identifier for the template used to generate the tuple.
54
  3. *template*: A string containing the corresponding SPARQL query
55
 
56
+ ### Train-Test Split
57
+ Train and test sets are split in a balanced way by the template name. That is, if there are more than 20 data tuples per template_name, 20 are assigned to the test set and the rest is assigned to the train set. If there are less than 20 data tuples per template_name, 10% of the data tuples are assigned to the test set and the rest is assigned to the train set. If there is only one data tuple per template_name, which is the case for 2 templates, the data tuple is assigned solely into the train set.
58
+
59
  ## Intended Use
60
 
61
  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.