shahrukhx01
commited on
Commit
•
9c61ead
1
Parent(s):
e092697
Update README.md
Browse files
README.md
CHANGED
@@ -11,7 +11,7 @@ from transformers import BartTokenizer, BartForConditionalGeneration, BartConfig
|
|
11 |
model = BartForConditionalGeneration.from_pretrained('shahrukhx01/schema-aware-distilbart-cnn-12-6-text2sql')
|
12 |
tokenizer = BartTokenizer.from_pretrained('shahrukhx01/schema-aware-distilbart-cnn-12-6-text2sql')
|
13 |
## add NL query with table schema
|
14 |
-
question = '<col0> Player : text <col1> No. : text <col2> Nationality : text <col3> Position : text <col4> Years in Toronto : text <col5>
|
15 |
|
16 |
inputs = tokenizer([question], max_length=1024, min_length=0, return_tensors='pt')
|
17 |
|
|
|
11 |
model = BartForConditionalGeneration.from_pretrained('shahrukhx01/schema-aware-distilbart-cnn-12-6-text2sql')
|
12 |
tokenizer = BartTokenizer.from_pretrained('shahrukhx01/schema-aware-distilbart-cnn-12-6-text2sql')
|
13 |
## add NL query with table schema
|
14 |
+
question = "What is terrence ross' nationality? </s> <col0> Player : text <col1> No. : text <col2> Nationality : text <col3> Position : text <col4> Years in Toronto : text <col5> School/Club Team : text"
|
15 |
|
16 |
inputs = tokenizer([question], max_length=1024, min_length=0, return_tensors='pt')
|
17 |
|