摘要: 1 crontab e 配置启动定时任务 /1 sh /home/admin/application/wd/core python/getMemPositionFromAnaualOrChangeInfo/start.sh start.sh 为启动文件 start.sh文件里面的内容: ! /bin 阅读全文
posted @ 2017-11-29 17:58 wdan2016 阅读(1032) 评论(0) 推荐(0) 编辑
摘要: import tornado.httpserver import tornado.options import tornado.web from tornado.options import define, options from data_util import UtilsLTPTranslat 阅读全文
posted @ 2017-11-29 17:56 wdan2016 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask, request from data_util import UtilsLTPTranslate import json model = UtilsLTPTranslate() app = Flask(__name__) @app.route("/") 阅读全文
posted @ 2017-11-29 17:55 wdan2016 阅读(650) 评论(0) 推荐(0) 编辑
摘要: ltp 可以分词 词性识别 命名实体识别,使用过程: import pyltp from pyltp import SentenceSplitter from pyltp import Segmentor from pyltp import Postagger from pyltp import N 阅读全文
posted @ 2017-11-29 17:52 wdan2016 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: 1 查看文件内容: tail f test.txt 2 查看端口 netstat nlp 3 删除某个运行程序的所有进程 ps ef|grep translateService.py|grep v grep|cut c 9 15|xargs kill 9 4 nohup后台执行程序 nohup py 阅读全文
posted @ 2017-11-29 17:51 wdan2016 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 理论入门(里面的程序有些问题,但理论讲得挺好的) https://www.zybuluo.com/hanbingtao/note/476663 tensorflow编程入门 https://github.com/aymericdamien/TensorFlow Examples/tree/maste 阅读全文
posted @ 2017-11-29 17:50 wdan2016 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 1.打开pyCharm Tools Deployment Configuratio Connecion Root Path: /home/admin/application/core python/yanzhengma(填写根目录path) Mappings Deployment path on s 阅读全文
posted @ 2017-11-29 17:49 wdan2016 阅读(1761) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include include include include using namespace std; bool isZero(double d) { return fabs(d) st; boo 阅读全文
posted @ 2017-06-27 16:18 wdan2016 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include using namespace std; class Solution { public: int getSum(int rows, int cols) { int sum = 0; 阅读全文
posted @ 2017-05-15 20:43 wdan2016 阅读(151) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h" include include include include include using namespace std; class Solution { public: bool hasPath(char matrix, int rows, int cols, 阅读全文
posted @ 2017-05-15 20:08 wdan2016 阅读(148) 评论(0) 推荐(0) 编辑