Skip to content

Commit 349c9d8

Browse files
committed
Merge remote-tracking branch 'origin/chonggou' into chonggou
2 parents a732467 + e2c7f6a commit 349c9d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

examples/multi_extractor_compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from webmainbench import DataLoader, Evaluator, ExtractorFactory, DataSaver
22
from pathlib import Path
33

4-
# 如需调用LLM修正抽取结果,在config.py中配置 LLM api
4+
# 如需调用LLM修正抽取结果,在 webmainbench/config.py 中配置 LLM api
55

66
def all_extractor_comparison():
77
"""演示多抽取器对比"""
File renamed without changes.

webmainbench/metrics/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def _extract_from_markdown(text: str, field_name: str = None) -> Dict[str, str]:
197197
return {'code': '', 'formula': '', 'table': '', 'text': ''}
198198

199199
# 加载 llm 配置
200-
from config import LLM_CONFIG
200+
from ..config import LLM_CONFIG
201+
201202
# 直接创建具体的提取器实例
202203
from .code_extractor import CodeSplitter
203204
from .formula_extractor import FormulaSplitter

0 commit comments

Comments
 (0)