2019年5月24日
摘要:
以上代码从https://github.com/roomylee/rcnn-text-classification/blob/master/rcnn.py 拷贝过来的。 rcnn的模型可参考我的博客园里的文件:Rcnn.pdf.zip,模型如下图:
阅读全文
posted @ 2019-05-24 17:43
大老虎🐯
阅读(466)
推荐(0)
2019年5月8日
摘要:
一:get 请求 client.py代码: server.py代码: 二:post 请求 client.py代码: server.py代码: 注:以上2个client.py拿到的res是一个响应对象。res.content 得到字节方式的响应体,还可以用res.text得到字符串方式的响应体,res
阅读全文
posted @ 2019-05-08 11:45
大老虎🐯
阅读(161)
推荐(0)
2019年5月7日
摘要:
rabbitmq代码和解释见英文官方文档和翻译版中文官方文档。中文官方文档的代码有错误,所以代码以英文官方文档为主。 英文官方文档地址:https://www.rabbitmq.com/tutorials/tutorial-one-python.html 中文官方文档地址:http://rabbit
阅读全文
posted @ 2019-05-07 16:46
大老虎🐯
阅读(226)
推荐(0)
摘要:
李航的统计学习方法里有hmm的例子。由于该书没有后向算法的例子,可通过https://blog.csdn.net/zb1165048017/article/details/48577891找到后向算法的例子。 hmm的实现代码见:https://applenob.github.io/hmm.html
阅读全文
posted @ 2019-05-07 16:26
大老虎🐯
阅读(139)
推荐(0)
摘要:
实现代码在https://pytorch.org/tutorials/beginner/nlp/advanced_tutorial.html#sphx-glr-beginner-nlp-advanced-tutorial-py里。代码里对重要函数的解释见笔记。以下链接用通俗易懂的中文解释了原理: h
阅读全文
posted @ 2019-05-07 16:21
大老虎🐯
阅读(154)
推荐(0)
摘要:
helloworld.proto代码如下: 解释:定义了一个Greeter的服务,会跟下面的server.py里面的class类名同名。sayhello是整个消息来回过程中client要调用的定义在server端的函数名。HelloRequest是client发送给server消息时用的函数。把需要
阅读全文
posted @ 2019-05-07 16:16
大老虎🐯
阅读(137)
推荐(0)