Qian Liu
commited on
Commit
•
e3dd5e3
1
Parent(s):
34c79f7
Update README.md
Browse files
README.md
CHANGED
@@ -39,7 +39,7 @@ from transformers import TapexTokenizer, BartForConditionalGeneration
|
|
39 |
import pandas as pd
|
40 |
|
41 |
tokenizer = TapexTokenizer.from_pretrained("microsoft/tapex-base-finetuned-wikisql")
|
42 |
-
model = BartForConditionalGeneration.from_pretrained("microsoft/tapex-base")
|
43 |
|
44 |
data = {
|
45 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
@@ -54,7 +54,7 @@ encoding = tokenizer(table=table, query=query, return_tensors="pt")
|
|
54 |
outputs = model.generate(**encoding)
|
55 |
|
56 |
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
|
57 |
-
# ['2008']
|
58 |
```
|
59 |
|
60 |
### How to Eval
|
|
|
39 |
import pandas as pd
|
40 |
|
41 |
tokenizer = TapexTokenizer.from_pretrained("microsoft/tapex-base-finetuned-wikisql")
|
42 |
+
model = BartForConditionalGeneration.from_pretrained("microsoft/tapex-base-finetuned-wikisql")
|
43 |
|
44 |
data = {
|
45 |
"year": [1896, 1900, 1904, 2004, 2008, 2012],
|
|
|
54 |
outputs = model.generate(**encoding)
|
55 |
|
56 |
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
|
57 |
+
# [' 2008.0']
|
58 |
```
|
59 |
|
60 |
### How to Eval
|