albert-bilstm-crf model download

This commit is contained in:
yongzhuo 2020-02-01 17:19:21 +08:00
parent e426544ac5
commit 636afc46c2
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -222,3 +222,7 @@ if __name__ == "__main__":
for es in equation_sample:
print('ff算式: ' + es)
print('思慧计算器结果: ' + str(cal.calculator_sihui(es)))
while True:
print("请输入:")
question = input()
print(cal.calculator_sihui(question))