Skip to content

Commit

Permalink
修改sql
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangfengwang committed Feb 27, 2022
1 parent cee6e3c commit e0611aa
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions doc/需求描述.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

## 统计脚本

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e0611aa

Please sign in to comment.