Open Hacken-L opened 5 years ago
Also, when I use properties files in src/edu/stanford/nlp/coref/properties, for example String[] args = new String[] {"-props", "edu/stanford/nlp/coref/properties/deterministic-chinese.properties" }; or neural-chinese.properties, it seems that coreference chains cannot be established. Only StanfordCoreNLP-chinese.properties in edu/stanford/nlp/pipeline works well. To find the reasons, I tried to print out the tokenize result but it seems that it cannot make right tokens at first step. Why does it happens?
There is a general overview of coreference here: https://stanfordnlp.github.io/CoreNLP/coref.html
The coref
folder contains code for the more recent coref algorithms. The dcoref
folder contains code for the old deterministic coref system.
hybrid
is deprecated for English, the hybrid
code for Chinese is actually the deterministic system (rules)
there is not a statistical system for Chinese, just neural and deterministic (it would probably make sense to change the name at some point)
if you want to use your own custom properties, file, I would just provide an absolute path to the file...if you put it in src
and it's not working , I think that means it's not being copied anywhere on the CLASSPATH after you build...if you put custom properties files anywhere you like and then provide the absolute path it will work
Properties props = StringUtils.argsToProperties(args);
It will get an error: argsToProperties could not read properties file: myself.properties But if I change those into String[] args = new String[] {"-props", "edu/stanford/nlp/pipeline/StanfordCoreNLP-chinese.properties" };
It will be fine. Why does it happens? StanfordCoreNLP-chinese.properties and myself.properties are both properties files in src/edu/nlp/pipeline.