List of usage examples for edu.stanford.nlp.ling SentenceUtils listToString
public static <T> String listToString(List<T> list)
From source file:org.lambda3.text.simplification.discourse.utils.sentences.SentencesUtils.java
License:Open Source License
private static List<String> splitIntoSentences(Reader reader) { List<String> res = new ArrayList<>(); DocumentPreprocessor dp = new DocumentPreprocessor(reader); for (List<HasWord> sentence : dp) { res.add(SentenceUtils.listToString(sentence)); }//w w w . jav a2 s . c o m return res; }
From source file:org.lambda3.text.simplification.discourse.utils.words.WordsUtils.java
License:Open Source License
public static String wordsToString(List<Word> words) { return SentenceUtils.listToString(words); }