我遵循了这个link中的示例。我已经从here下载了法语jar。当我按如下方式调用它时,
java -mx1g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLP -props StanfordCoreNLP-french.properties -annotators tokenize,ssplit,pos,depparse -file french.txt -outputFormat conllu
我总是看到它加载的是英语的深度解析器模型,而不是法语。
Loading depparse model file: edu/stanford/nlp/models/parser/nndep/english_UD.gz ... PreComputed 100000, Elapsed Time: 1.341 (s)
这是一个bug吗?
发布于 2016-03-26 06:23:07
Update --我发现默认属性文件没有指定depparse模型。所以现在我给它我自己的配置文件,现在它可以工作了。
annotators = tokenize, ssplit, pos, depparse, parse
tokenize.language = fr
pos.model = edu/stanford/nlp/models/pos-tagger/french/french.tagger
parse.model = edu/stanford/nlp/models/lexparser/frenchFactored.ser.gz
depparse.model = edu/stanford/nlp/models/parser/nndep/UD_French.gzhttps://stackoverflow.com/questions/36223002
复制相似问题