List of usage examples for edu.stanford.nlp.pipeline StanfordCoreNLPClient StanfordCoreNLPClient
@SuppressWarnings("unused") public StanfordCoreNLPClient(Properties properties, String host, int port)
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)); }