You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set 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
set EXECUTOR=java %JAVA_OPTS% -cp %CLASS_PATH%
rem 1、从语料库中提取词,词之间以空格分隔,内容保存到文件 data/word.txt
if not exist data/word.txt call %EXECUTOR% org.apdplat.word.corpus.ExtractText data/word.txt
rem 2、对分好词的文件 data/word.txt建立词向量,将词向量保存到文件 data/vector.txt,将词汇表保存到文件 data/vocabulary.txt
rem 上下文长度为
set CONTEXT_WINDOW_LENGTH=2
rem 词向量长度
set VECTOR_LENGTH=30
if not exist data/vector.txt call %EXECUTOR% org.apdplat.word.vector.Word2Vector data/word.txt data/vector.txt data/vocabulary.txt %CONTEXT_WINDOW_LENGTH% %VECTOR_LENGTH%