QubitPi commited on
Commit
baf5d56
1 Parent(s): ec0918d

Patch missed attribute (#93)

Browse files
huggingface/generate_german_dataset.py CHANGED
@@ -48,7 +48,7 @@ def generate_dataset(yaml_path: str, dataset_path: str):
48
  target_node = {label_key: definition}
49
  label = {label_key: predicate if predicate else "definition"}
50
 
51
- graph.write(json.dumps({"source": source_node, "target": target_node, label_key: label}))
52
  graph.write("\n")
53
 
54
  for link in get_inferred_links(vocabulary, label_key, get_declension_attributes):
 
48
  target_node = {label_key: definition}
49
  label = {label_key: predicate if predicate else "definition"}
50
 
51
+ graph.write(json.dumps({"source": source_node, "target": target_node, "link": label}))
52
  graph.write("\n")
53
 
54
  for link in get_inferred_links(vocabulary, label_key, get_declension_attributes):