BERT 服务化 bert-as-service
原文
bert-as-service 用 BERT 作为句子编码器, 并通过 ZeroMQ 服务托管, 只需两行代码就可以将句子映射成固定长度的向量表示;
准备
windows10 + python3.5 + tensorflow1.2.1
安装流程
安装 tensorflow, 参考
安装 bert-as-service
bert-as-service, 依赖于 python≥3.5 AND tensorflow≥1.10;
pip install bert-serving-server
pip in
原创
2021-03-03 18:42:47 ·
2611 阅读 ·
2 评论