neulab/omnitab-large-1024shot
(based on BART architecture) is initialized with
microsoft/tapex-large
and continuously pretrained on natural and synthetic data (SQL2NL model trained in the 1024-shot setting).
Usage
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
import pandas as pd
tokenizer = AutoTokenizer.from_pretrained("neulab/omnitab-large-1024shot")
model = AutoModelForSeq2SeqLM.from_pretrained("neulab/omnitab-large-1024shot")
data = {
"year": [1896, 1900, 1904, 2004, 2008, 2012],
"city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
}
table = pd.DataFrame.from_dict(data)
query = "In which year did beijing host the Olympic Games?"
encoding = tokenizer(table=table, query=query, return_tensors="pt")
outputs = model.generate(**encoding)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True))
# [' 2008']
Reference
@inproceedings{jiang-etal-2022-omnitab,
title = "{O}mni{T}ab: Pretraining with Natural and Synthetic Data for Few-shot Table-based Question Answering",
author = "Jiang, Zhengbao and Mao, Yi and He, Pengcheng and Neubig, Graham and Chen, Weizhu",
booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
month = jul,
year = "2022",
}
Runs of neulab omnitab-large-1024shot on huggingface.co
7
Total runs
0
24-hour runs
-1
3-day runs
-1
7-day runs
-1
30-day runs
More Information About omnitab-large-1024shot huggingface.co Model
omnitab-large-1024shot huggingface.co
omnitab-large-1024shot huggingface.co is an AI model on huggingface.co that provides omnitab-large-1024shot's model effect (), which can be used instantly with this neulab omnitab-large-1024shot model. huggingface.co supports a free trial of the omnitab-large-1024shot model, and also provides paid use of the omnitab-large-1024shot. Support call omnitab-large-1024shot model through api, including Node.js, Python, http.
omnitab-large-1024shot huggingface.co is an online trial and call api platform, which integrates omnitab-large-1024shot's modeling effects, including api services, and provides a free online trial of omnitab-large-1024shot, you can try omnitab-large-1024shot online for free by clicking the link below.
neulab omnitab-large-1024shot online free url in huggingface.co:
omnitab-large-1024shot is an open source model from GitHub that offers a free installation service, and any user can find omnitab-large-1024shot on GitHub to install. At the same time, huggingface.co provides the effect of omnitab-large-1024shot install, users can directly use omnitab-large-1024shot installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
omnitab-large-1024shot install url in huggingface.co: