Skip to content

Commit 228c58a

Browse files
authored
fix bug about template 3 (#3646)
1 parent e94af79 commit 228c58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/taskflow/question_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _convert_example(self,
191191
target = '在已知答案的前提下,问题:' + target
192192
elif self._template == 3:
193193
### use template 3
194-
source = '这是一个问题生成任务,根据提供的答案和上下文,来生成问题。' + title + tokenizer.sep_token + '上下文:' + source
194+
source = '这是一个问题生成任务,根据提供的答案和上下文,来生成问题。' + title + self._tokenizer.sep_token + '上下文:' + source
195195
title = None
196196
if target:
197197
target = '问题:' + target

0 commit comments

Comments
 (0)