|
@@ -244,6 +244,7 @@ class ModelTrainer:
|
|
|
:return: 提取的答案
|
|
:return: 提取的答案
|
|
|
"""
|
|
"""
|
|
|
try:
|
|
try:
|
|
|
|
|
+ print("text -> \n",text)
|
|
|
if "<answer>" in text and "</answer>" in text:
|
|
if "<answer>" in text and "</answer>" in text:
|
|
|
answer = text.split("<answer>")[-1]
|
|
answer = text.split("<answer>")[-1]
|
|
|
answer = answer.split("</answer>")[0]
|
|
answer = answer.split("</answer>")[0]
|