Formatting
Browse files
README.md
CHANGED
@@ -45,12 +45,12 @@ inputs = tokenizer_in([sample], return_tensors="pt")
|
|
45 |
outputs = model.generate(**inputs)
|
46 |
|
47 |
print(f"Gold answer: {gold_answer}")
|
48 |
-
print("
|
49 |
```
|
50 |
|
51 |
```
|
52 |
-
Gold answer: SELECT ?obj WHERE { wd:Q42168 p:P1082 ?s . ?s ps:P1082 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'2013'))
|
53 |
-
|
54 |
```
|
55 |
|
56 |
Common errors include:
|
|
|
45 |
outputs = model.generate(**inputs)
|
46 |
|
47 |
print(f"Gold answer: {gold_answer}")
|
48 |
+
print(" Model:" + tokenizer_out.decode(outputs[0], skip_special_tokens=True))
|
49 |
```
|
50 |
|
51 |
```
|
52 |
+
Gold answer: SELECT ?obj WHERE { wd:Q42168 p:P1082 ?s . ?s ps:P1082 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'2013'))
|
53 |
+
Model: SELECT?obj WHERE { wd:Q4754 p:P1082?s.?s ps:P1082?obj.?s pq:P585?x filter(contains(YEAR(?x),'2013')) }
|
54 |
```
|
55 |
|
56 |
Common errors include:
|