From abe12a41fe5f477de73f08e25b79db34b79d30a8 Mon Sep 17 00:00:00 2001 From: zhaoxiangpeng <1943364377@qq.com> Date: Fri, 17 Jan 2025 14:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=95=E6=9D=A1=E5=8F=82?= =?UTF-8?q?=E8=80=83=E6=96=87=E7=8C=AE=E5=AD=97=E6=AE=B5=EF=BC=88=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E5=8F=82=E8=80=83=E6=96=87=E4=BB=B6=E6=8B=86=E5=88=86?= =?UTF-8?q?=E5=90=8E=E5=8D=95=E6=9D=A1=E5=8F=82=E8=80=83=E6=96=87=E7=8C=AE?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bnu_wos/20250108_func.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bnu_wos/20250108_func.py b/bnu_wos/20250108_func.py index 1d5690b..9e1cdaa 100644 --- a/bnu_wos/20250108_func.py +++ b/bnu_wos/20250108_func.py @@ -96,7 +96,8 @@ def ref_str2dic(text): if not re.match(r'\d{4}', py): py = None doi_idx = ref.find(DOI_SPLIT_SYMBOL) - model = dict(au=au, py=py, so=so) + # 把参考文献字段也加进去 + model = dict(au=au, py=py, so=so, ref=ref) if doi_idx != -1: doi_text = ref[doi_idx + DOI_SPLIT_SYMBOL_LENGTH:] if doi_text.startswith('['): @@ -226,9 +227,9 @@ def step_2_1(table: pd.DataFrame, ai_result_table): def main_step1(): - # step_1_1() + step_1_1() # step_1_2() - step_1_3() # WOS:000426769900009 + # step_1_3() # WOS:000426769900009 def main_step2(): @@ -249,5 +250,5 @@ def main_step2(): if __name__ == '__main__': - # main_step1() - main_step2() + main_step1() + # main_step2()