Views
No views yet
<hl> tokens and end the text with </s>. For example<hl> 42 <hl> is the answer to life, the universe and everything. </s>1from pipelines import pipeline
2nlp = pipeline("question-generation")
3nlp("42 is the answer to life, universe and everything.")
4=> [{'answer': '42', 'question': 'What is the answer to life, universe and everything?'}]