model update
Browse files
README.md
CHANGED
@@ -14,7 +14,7 @@ pipeline_tag: text2text-generation
|
|
14 |
tags:
|
15 |
- questions and answers generation
|
16 |
widget:
|
17 |
-
- text: "
|
18 |
example_title: "Questions & Answers Generation Example 1"
|
19 |
model-index:
|
20 |
- name: lmqg/bart-large-tweetqa-qag
|
@@ -89,7 +89,7 @@ from lmqg import TransformersQG
|
|
89 |
# initialize model
|
90 |
model = TransformersQG(language='en', model='lmqg/bart-large-tweetqa-qag')
|
91 |
# model prediction
|
92 |
-
question = model.generate_qa(
|
93 |
|
94 |
```
|
95 |
|
@@ -100,7 +100,7 @@ from transformers import pipeline
|
|
100 |
# initialize model
|
101 |
pipe = pipeline("text2text-generation", 'lmqg/bart-large-tweetqa-qag')
|
102 |
# question generation
|
103 |
-
question = pipe('
|
104 |
|
105 |
```
|
106 |
|
|
|
14 |
tags:
|
15 |
- questions and answers generation
|
16 |
widget:
|
17 |
+
- text: "Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records."
|
18 |
example_title: "Questions & Answers Generation Example 1"
|
19 |
model-index:
|
20 |
- name: lmqg/bart-large-tweetqa-qag
|
|
|
89 |
# initialize model
|
90 |
model = TransformersQG(language='en', model='lmqg/bart-large-tweetqa-qag')
|
91 |
# model prediction
|
92 |
+
question = model.generate_qa("William Turner was an English painter who specialised in watercolour landscapes")
|
93 |
|
94 |
```
|
95 |
|
|
|
100 |
# initialize model
|
101 |
pipe = pipeline("text2text-generation", 'lmqg/bart-large-tweetqa-qag')
|
102 |
# question generation
|
103 |
+
question = pipe('Beyonce further expanded her acting career, starring as blues singer Etta James in the 2008 musical biopic, Cadillac Records.')
|
104 |
|
105 |
```
|
106 |
|