List of usage examples for edu.stanford.nlp.pipeline StanfordCoreNLP main
public static void main(String[] args) throws IOException
From source file:edu.stanford.nlp.StanfordCoreNLPChineseTestApp.java
License:Open Source License
public static void main(String[] args) throws IOException, ClassNotFoundException { String[] chineseArgs = new String[] { "-props", "StanfordCoreNLP-chinese.properties", "-annotators", "tokenize,ssplit,pos,lemma,ner,parse,coref,kbp,entitylink", "-file", "sample-chinese.txt", "-outputFormat", "text" }; StanfordCoreNLP.main(chineseArgs); }
From source file:edu.stanford.nlp.StanfordCoreNLPEnglishTestApp.java
License:Open Source License
public static void main(String[] args) throws IOException, ClassNotFoundException { String[] englishArgs = new String[] { "-file", "sample-english.txt", "-outputFormat", "text", "-props", "english.properties" }; StanfordCoreNLP.main(englishArgs); }
From source file:edu.stanford.nlp.StanfordCoreNLPSpanishTestApp.java
License:Open Source License
public static void main(String[] args) throws IOException, ClassNotFoundException { String[] chineseArgs = new String[] { "-props", "StanfordCoreNLP-spanish.properties", "-annotators", "tokenize,ssplit,pos,lemma,ner,parse,depparse,kbp", "-file", "sample-spanish.txt", "-outputFormat", "text" }; StanfordCoreNLP.main(chineseArgs); }