1 Star 0 Fork 25

她人在风景中/word

forked from 杨尚川/word 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
wfs.sh 914 Bytes
一键复制 编辑 原始数据 按行查看 历史
ysc 提交于 2015-05-16 18:57 . 词频统计脚本
#!/bin/bash
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_NORMAL="echo -en \\033[0;39m"
if [ $# = 0 ] ;then
$SETCOLOR_FAILURE
echo Usage:
echo -removeStopWord to specify remove stop word.
echo -textFile=text.txt to specify text for word frequency statistics, can specify more than one option.
echo -statisticsResultFile=statistics-result.txt to specify the file path for saving statistics result.
echo -segmentationAlgorithm=MinimalWordCount to specify the algorithm of segmentation.
$SETCOLOR_NORMAL
exit
fi
mvn -Dmaven.test.skip clean install dependency:copy-dependencies
export JAVA_OPTS="-Xms3g -Xmx3g"
export CLASS_PATH="target/classes:target/dependency/slf4j-api-1.6.4.jar:target/dependency/logback-classic-0.9.28.jar:target/dependency/logback-core-0.9.28.jar"
export EXECUTOR="java $JAVA_OPTS -cp $CLASS_PATH"
exec $EXECUTOR org.apdplat.word.WordFrequencyStatistics $*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ossite/word.git
[email protected]:ossite/word.git
ossite
word
word
master

搜索帮助