-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大神,好,训练模型后如何使用模型呢? #116
Comments
项目使用的是bazel编译,比较麻烦,修改一下seg_backend_api.cc 这个文件,如下:
*/ #include "base/base.h" DEFINE_int32(port, 9090, "the api serving binding port"); class SegMiddleware int main(int argc, char* argv[])
} set -e -x g++ -std=c++11 -o seg_backend_api ./kcws/cc/seg_backend_api.cc |
@forever1dream 能再解释下上面的方法吗?为何不用bazel编译,然后具体使用依然不懂啊? |
@AlleyEli 我是觉得用bazel编译比较麻烦,而且集成到自己的项目中比较麻烦,上面的方法主要是弄清楚解码所需要的依赖 -I是依赖的头文件,-L是所需的.a或者.so 可以直接根据这个些makefile或者其他的,修改的代码主要是将源码中的网络服务去掉,改成,本地输入测试,或者文件测试 |
@forever1dream 非常感谢! |
@forever1dream 能告诉下训练和使用时候环境吗? |
Alley <[email protected]>于2018年5月16日 周三10:39写道:
@forever1dream <https://github.com/forever1dream> 能告诉下训练和使用时候环境吗?
我的Ubuntu16.04 + python2.7 + bzel0.45 + tf1.7.0
我对比下
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#116 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADxsF6UGU93rJckbczmArZWhTlLGQe59ks5ty5FhgaJpZM4TLaYt>
.
我是centos7,python2.7,bazel0.9.0,tf1.6,你编译出.so了吗,安装那个脚本就可以了啊
|
@forever1dream thanks |
@AlleyEli 我把整个编译过程也放到github(https://github.com/forever1dream/cplus-kcws) 修改下自己的tensorflow安装路径(把该项目和tensorflow安装路径放在同级目录,就可以了) 和 boost路径,就可以运行了。感谢你的Python训练方法,我再去看看,多谢啦。 |
大神,好,训练模型后如何使用模型呢?意思是如何输入一个句子进行测试呢?
The text was updated successfully, but these errors were encountered: