Instructions to use microsoft/tapex-base-finetuned-wikisql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/tapex-base-finetuned-wikisql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("table-question-answering", model="microsoft/tapex-base-finetuned-wikisql")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("microsoft/tapex-base-finetuned-wikisql") model = AutoModelForSeq2SeqLM.from_pretrained("microsoft/tapex-base-finetuned-wikisql", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Getting SQL code for a query
#3
by magnetpest2k5 - opened
In Tapex, how do you get the corresponding SQL code for a given input query?
@magnetpest2k5 Thanks for your interest on our work! Actually we do not get the corresponding SQL code for a given input query, we just pretrain the model with (SQL, query result) corpus and tries to fine-tune it directly on (Natural Language, Answer) pairs along with the table.