From e0611aa120ca0774337911b994f07e402370ee57 Mon Sep 17 00:00:00 2001 From: wcf Date: Sun, 27 Feb 2022 17:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...200\346\261\202\346\217\217\350\277\260.md" | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git "a/doc/\351\234\200\346\261\202\346\217\217\350\277\260.md" "b/doc/\351\234\200\346\261\202\346\217\217\350\277\260.md" index 318fb22..a657f4a 100644 --- "a/doc/\351\234\200\346\261\202\346\217\217\350\277\260.md" +++ "b/doc/\351\234\200\346\261\202\346\217\217\350\277\260.md" @@ -12,7 +12,21 @@ ## 运行分析 -java -jar target/nlp-parser-1.0-SNAPSHOT-jar-with-dependencies.jar -r filterRegex.txt -c conll_output.txt -d nlpparsed.sqlite3 data/lz-data/shentiyundongxunlian.txt data/lz-data/tushouxunlian.txt data/lz-data/yujia.txt +# 开发时的路径 +java -jar target/nlp-parser-1.0-SNAPSHOT-jar-with-dependencies.jar -r data/filterRegex.txt -c conll_output.txt -d nlpparsed.sqlite3 data/lz-data/shentiyundongxunlian.txt data/lz-data/tushouxunlian.txt data/lz-data/yujia.txt + +# linux / mac +java -jar nlp-parser-1.0-SNAPSHOT-jar-with-dependencies.jar -r filterRegex.txt -c conll_output.txt -d nlpparsed.sqlite3 data/lz-data/shentiyundongxunlian.txt data/lz-data/tushouxunlian.txt data/lz-data/yujia.txt + +# windows +# 如果解压路径是 D:\\xxx\\yyy +# 先切换到解压的目录: +D: +cd xxx\\yyy +# 进行依存句法分析,并把结果存到数据库 nlpparsed.sqlite3 +java -jar nlp-parser-1.0-SNAPSHOT-jar-with-dependencies.jar -r filterRegex.txt -c conll_output.txt -d nlpparsed.sqlite3 data\\lz-data\\shentiyundongxunlian.txt data\\lz-data\\tushouxunlian.txt data\\lz-data\\yujia.txt + +java -jar nlp-parser-1.0-SNAPSHOT-jar-with-dependencies.jar -r filterRegex.txt -c conll_output.txt -d nlpparsed.sqlite3 D:\\!!!!!!!!毕业论文\\nlp-parser.tar\\nlp-parser\\nlp-parser-jar\\data\\lz-data\\shentiyundongxunlian.txt D:\\!!!!!!!!毕业论文\\nlp-parser.tar\\nlp-parser\\nlp-parser-jar\\data\\lz-data\\tushouxunlian.txt D:\\!!!!!!!!毕业论文\\nlp-parser.tar\\nlp-parser\\nlp-parser-jar\\data\\lz-data\\yujia.txt ## 统计脚本 @@ -49,7 +63,7 @@ select c.deprel , s.file_name -- , c.left_word -- , c.right_word - , s.sent +-- , s.sent , count(1) as num from parsed_cfg_pair c join parsed_sent s on c.sent_id = s.id