Views
No views yet
1from pipelines import pipeline
2
3text = "Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum \
4and first released in 1991, Python's design philosophy emphasizes code \
5readability with its notable use of significant whitespace."
6
7nlp = pipeline("e2e-qg")
8nlp(text)
9=> [
10 'Who created Python?',
11 'When was Python first released?',
12 "What is Python's design philosophy?"
13]