domenicrosati / question_converter-3b

huggingface.co
Total runs: 52
24-hour runs: 4
7-day runs: 23
30-day runs: 13
Model's Last Updated: May 11 2022
text-generation

Introduction of question_converter-3b

Model Details of question_converter-3b

Question-Answer to Statement Converter

A question answer pair to statement converter from https://github.com/jifan-chen/QA-Verification-Via-NLI

See:

@article{chen2021can,
  title={Can NLI Models Verify QA Systems' Predictions?},
  author={Chen, Jifan and Choi, Eunsol and Durrett, Greg},
  journal={EMNLP Findings},
  year={2021}
}

Note: I am not the maintainer or orginal author just keeping it here to use huggingface APIs to produce statements from question answer pair for downstream applications.

TL;DR:

We fine-tune a seq2seq model, T5-3B (Raffel et al., 2020), using the ( a , q , d ) (a, q, d) pairs annotated by Demszky et al. (2018).

Where a is answer, q is question, and d is declerative sentence (i.e. a statement).

See Appendex B.2 of Chen et al. for more.

Usage

The prompt should be {question} {seperator} {answer} where the seperator is </s> .

from transformers import AutoTokenizer,  AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained('domenicrosati/question_converter-3b')
model = AutoModelForSeq2SeqLM.from_pretrained('domenicrosati/question_converter-3b')

question = "Where in the world is Carmen Sandiego?"
answer = "She is in Abruzzo"

prompt = f'{question} </s> {answer}'
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
output_ids = model.generate(input_ids)
responses = tokenizer.batch_decode(output_ids, skip_special_tokens=True)

['Carmen Sandiego is in Abruzzo.']

Runs of domenicrosati question_converter-3b on huggingface.co

52
Total runs
4
24-hour runs
6
3-day runs
23
7-day runs
13
30-day runs

More Information About question_converter-3b huggingface.co Model

question_converter-3b huggingface.co

question_converter-3b huggingface.co is an AI model on huggingface.co that provides question_converter-3b's model effect (), which can be used instantly with this domenicrosati question_converter-3b model. huggingface.co supports a free trial of the question_converter-3b model, and also provides paid use of the question_converter-3b. Support call question_converter-3b model through api, including Node.js, Python, http.

question_converter-3b huggingface.co Url

https://huggingface.co/domenicrosati/question_converter-3b

domenicrosati question_converter-3b online free

question_converter-3b huggingface.co is an online trial and call api platform, which integrates question_converter-3b's modeling effects, including api services, and provides a free online trial of question_converter-3b, you can try question_converter-3b online for free by clicking the link below.

domenicrosati question_converter-3b online free url in huggingface.co:

https://huggingface.co/domenicrosati/question_converter-3b

question_converter-3b install

question_converter-3b is an open source model from GitHub that offers a free installation service, and any user can find question_converter-3b on GitHub to install. At the same time, huggingface.co provides the effect of question_converter-3b install, users can directly use question_converter-3b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

question_converter-3b install url in huggingface.co:

https://huggingface.co/domenicrosati/question_converter-3b

Url of question_converter-3b

question_converter-3b huggingface.co Url

Provider of question_converter-3b huggingface.co

domenicrosati
ORGANIZATIONS

Other API from domenicrosati