Commit
·
71c954e
1
Parent(s):
b058738
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
```python
|
| 2 |
from transformers import BartTokenizer, BartForConditionalGeneration, BartConfig
|
| 3 |
-
model = BartForConditionalGeneration.from_pretrained('shahrukhx01/schema-aware-denoising-bart-large-cnn')
|
| 4 |
-
tokenizer = BartTokenizer.from_pretrained('shahrukhx01/schema-aware-denoising-bart-large-cnn')
|
| 5 |
## add NL query with table schema
|
| 6 |
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"
|
| 7 |
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: "en"
|
| 3 |
+
tags:
|
| 4 |
+
- schema-aware-text2sql
|
| 5 |
+
- text2sql
|
| 6 |
+
- wikisql
|
| 7 |
+
widget:
|
| 8 |
+
- text: "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"
|
| 9 |
+
---
|
| 10 |
```python
|
| 11 |
from transformers import BartTokenizer, BartForConditionalGeneration, BartConfig
|
| 12 |
+
model = BartForConditionalGeneration.from_pretrained('shahrukhx01/schema-aware-denoising-bart-large-cnn-text2sql')
|
| 13 |
+
tokenizer = BartTokenizer.from_pretrained('shahrukhx01/schema-aware-denoising-bart-large-cnn-text2sql')
|
| 14 |
## add NL query with table schema
|
| 15 |
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"
|
| 16 |
|