From 636afc46c2005e27038e415b220885311db228a9 Mon Sep 17 00:00:00 2001 From: yongzhuo <2714618994@qq.com> Date: Sat, 1 Feb 2020 17:19:21 +0800 Subject: [PATCH] albert-bilstm-crf model download --- README.md | 2 ++ macropodus/tookit/calculator_sihui/calcultor_sihui.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b3b5a6a..5d99b29 100644 --- a/README.md +++ b/README.md @@ -225,6 +225,7 @@ print(sents) * ner, albert+bilstm+crf网络架构, 最大支持126个字符; * 需要安装tensorflow==1.15.0(pip安装不默认下载, 1.15.0以下未实验, 1.13以上应该可以); * 需要下载模型(pip安装不默认下载, 将ner_albert_people_1998覆盖到安装目录macropodus/data/model); + * 模型地址在[https://pan.baidu.com/s/1I3vydhmFEQ9nuPG2fDou8Q](https://pan.baidu.com/s/1I3vydhmFEQ9nuPG2fDou8Q), 提取码:rket; ```python3 import macropodus @@ -240,6 +241,7 @@ print(res_ners) * pos tag, albert+bilstm+crf网络架构, 最大支持126个字符; * 需要安装tensorflow==1.15.0(pip安装不默认下载, 1.15.0以下未实验, 1.13以上应该可以); * 需要下载模型(pip安装不默认下载, 将tag_albert_people_1998覆盖到安装目录macropodus/data/model); + * 模型地址在[https://pan.baidu.com/s/1I3vydhmFEQ9nuPG2fDou8Q](https://pan.baidu.com/s/1I3vydhmFEQ9nuPG2fDou8Q), 提取码:rket; ```python3 import macropodus diff --git a/macropodus/tookit/calculator_sihui/calcultor_sihui.py b/macropodus/tookit/calculator_sihui/calcultor_sihui.py index 058524d..f53e435 100644 --- a/macropodus/tookit/calculator_sihui/calcultor_sihui.py +++ b/macropodus/tookit/calculator_sihui/calcultor_sihui.py @@ -221,4 +221,8 @@ if __name__ == "__main__": for es in equation_sample: print('ff算式: ' + es) - print('思慧计算器结果: ' + str(cal.calculator_sihui(es))) \ No newline at end of file + print('思慧计算器结果: ' + str(cal.calculator_sihui(es))) + while True: + print("请输入:") + question = input() + print(cal.calculator_sihui(question)) \ No newline at end of file