镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
修复关于abstract的搜索
这个提交包含在:
@@ -424,7 +424,9 @@ class LatexPaperSplit():
|
|||||||
if mode == 'translate_zh':
|
if mode == 'translate_zh':
|
||||||
pattern = re.compile(r'\\begin\{abstract\}.*\n')
|
pattern = re.compile(r'\\begin\{abstract\}.*\n')
|
||||||
match = pattern.search(result_string)
|
match = pattern.search(result_string)
|
||||||
assert match is not None, "Cannot find paper abstract section!"
|
if not match:
|
||||||
|
pattern = re.compile(r'\\abstract\{')
|
||||||
|
match = pattern.search(result_string)
|
||||||
position = match.end()
|
position = match.end()
|
||||||
result_string = result_string[:position] + self.msg + msg + self.msg_declare + result_string[position:]
|
result_string = result_string[:position] + self.msg + msg + self.msg_declare + result_string[position:]
|
||||||
return result_string
|
return result_string
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户