Example usage for edu.stanford.nlp.pipeline StanfordCoreNLP main

List of usage examples for edu.stanford.nlp.pipeline StanfordCoreNLP main

Introduction

In this page you can find the example usage for edu.stanford.nlp.pipeline StanfordCoreNLP main.

Prototype

public static void main(String[] args) throws IOException 

Source Link

Document

This can be used just for testing or for command-line text processing.

Usage

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);
}