Debesh Sahoo
commited on
Commit
·
4f704f4
1
Parent(s):
e36d291
fine tune text to sql
Browse files
README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 2 |
|
| 3 |
# Load the tokenizer
|
|
@@ -33,4 +42,4 @@ test_id = 1000
|
|
| 33 |
print("model result:", inference(dataset["test"][test_id]["question"], dataset["test"][test_id]["table"]["header"]))
|
| 34 |
print("real result:", dataset["test"][test_id]["sql"]["human_readable"])
|
| 35 |
|
| 36 |
-
inference("what is id with name jui and age equal 25", ["id","name", "age"])
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets:
|
| 3 |
+
- wikisql
|
| 4 |
+
metrics:
|
| 5 |
+
- accuracy
|
| 6 |
+
pipeline_tag: text-classification
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
---
|
| 10 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 11 |
|
| 12 |
# Load the tokenizer
|
|
|
|
| 42 |
print("model result:", inference(dataset["test"][test_id]["question"], dataset["test"][test_id]["table"]["header"]))
|
| 43 |
print("real result:", dataset["test"][test_id]["sql"]["human_readable"])
|
| 44 |
|
| 45 |
+
inference("what is id with name jui and age equal 25", ["id","name", "age"])
|