简体   繁体   中英

Stanford CoreNLP - Test command with conll output

I'm new with CoreNLP and Dependency Parser. I'm a bit lost with the documentation. In this doc page I found how to train a model train doc page but I can't find the command line to test a file in conll format with a pre-trained model and get the ouput in conll. Someone knows the command?

Thanks and regards.

I found the command here Dependency Javadoc so If someone needs know the test command to test a conll file with a trained model and set the output in conll format use this command:

-> Change "-mx10g" to the ammount of RAM that you need <-

java -mx10g -cp "*" edu.stanford.nlp.parser.nndep.DependencyParser -model /path/to/<your.model.txt or your.model.txt.gz> -testFile /path/to/conllu/test/file/en-ud-test.conllu -outFile results.conll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM