Example usage for edu.stanford.nlp.pipeline StanfordCoreNLPClient StanfordCoreNLPClient

List of usage examples for edu.stanford.nlp.pipeline StanfordCoreNLPClient StanfordCoreNLPClient

Introduction

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

Prototype

@SuppressWarnings("unused")
public StanfordCoreNLPClient(Properties properties, String host, int port) 

Source Link

Document

Run on a single backend.

Usage

From source file:org.aksw.simba.bengal.triple2nl.property.PropertyVerbalizer.java

License:Apache License

public PropertyVerbalizer(IRIConverter uriConverter, Dictionary wordnetDictionary) {
    this.uriConverter = uriConverter;
    try {//from  w ww  .j  a  v  a 2s .c om
        this.database = wordnetDictionary == null ? Dictionary.getDefaultResourceInstance() : wordnetDictionary;
    } catch (JWNLException e) {
        throw new RuntimeException("Failed to create WordNet instance.", e);
    }

    preposition = new Preposition();

    Properties props = new Properties();
    props.put("annotators", "tokenize, ssplit, pos, lemma, parse");
    props.put("ssplit.isOneSentence", "true");
    // pipeline = new StanfordCoreNLPWrapper(new StanfordCoreNLP(props));
    pipeline = new StanfordCoreNLPWrapper(
            new StanfordCoreNLPClient(props, "titan.informatik.uni-leipzig.de", 9000));
}