Don’t know SQL? Don’t want to dive into a large spreadsheet? Ask questions in plain english!
Usage
hf_ez_table_question_answering(
model_id = "google/tapas-base-finetuned-wtq",
use_api = FALSE
)Examples
if (FALSE) { # \dontrun{
# Create a table to query
qa_table <-
tibble::tibble(Repository = c('Transformers', 'Datasets', 'Tokenizers'),
Stars = c('36542', '4512', '3934'),
Contributors = c('651', '77', '34'),
Programming.language = c('Python', 'Python', 'Rust, Python and NodeJS'))
# Load the default model and use local inference
ez <- hf_ez_table_question_answering()
ez$infer(query = "How many stars does the transformers repository have?", table = qa_table)
# Use the api for inference.
ez <- hf_ez_fill_mask(use_api = TRUE)
ez$infer(query = "How many stars does the transformers repository have?", table = qa_table)
} # }