rohitsroch commited on
Commit
ab38236
1 Parent(s): ed8bed3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -8,7 +8,7 @@ tags:
8
  datasets:
9
  - wikisql
10
  widget:
11
- - text: "translate English to Sql: What was the number of race that Kevin Curtain won? </s> c0 | number <eom> v4 | Kevin Curtain </s> c0 | No <eom> c1 | Date <eom> c2 | Round <eom> c3 | Circuit <eom> c4 | Pole_Position <eom> c5 | Fastest_Lap <eom> c6 | Race_winner <eom> c7 | Report"
12
  ---
13
 
14
  ## Paper
@@ -43,9 +43,9 @@ model = AutoModelForSeq2SeqLM.from_pretrained("course5i/NatSight-t5-small-wikisq
43
 
44
  # define input
45
  prefix = "translate English to Sql: "
46
- raw_nat_query = "What was the number of race that Kevin Curtain won?"
47
- query_mention_schema = "c0 | number <eom> v4 | Kevin Curtain"
48
- table_header_schema = "c0 | No <eom> c1 | Date <eom> c2 | Round <eom> c3 | Circuit <eom> c4 | Pole_Position <eom> c5 | Fastest_Lap <eom> c6 | Race_winner <eom> c7 | Report"
49
 
50
  encoder_input = prefix + raw_nat_query + " </s> " + query_mention_schema + " </s> " + table_header_schema
51
  input_ids = tokenizer.encode(encoder_input, return_tensors="pt", add_special_tokens=True)
 
8
  datasets:
9
  - wikisql
10
  widget:
11
+ - text: "translate English to Sql: What Branding does WRKO calls use? </s> c2 | Branding <eom> c0 | calls <eom> v0 | WRKO </s> c0 | Calls <eom> c1 | Frequency <eom> c2 | Branding <eom> c3 | Format <eom> c4 | Market/Rank <eom> c5 | Timeslot <eom> c6 | Group_owner"
12
  ---
13
 
14
  ## Paper
 
43
 
44
  # define input
45
  prefix = "translate English to Sql: "
46
+ raw_nat_query = "What Branding does WRKO calls use?"
47
+ query_mention_schema = "c2 | Branding <eom> c0 | calls <eom> v0 | WRKO"
48
+ table_header_schema = "c0 | Calls <eom> c1 | Frequency <eom> c2 | Branding <eom> c3 | Format <eom> c4 | Market/Rank <eom> c5 | Timeslot <eom> c6 | Group_owner"
49
 
50
  encoder_input = prefix + raw_nat_query + " </s> " + query_mention_schema + " </s> " + table_header_schema
51
  input_ids = tokenizer.encode(encoder_input, return_tensors="pt", add_special_tokens=True)