Example usage for edu.stanford.nlp.ling SentenceUtils listToString

List of usage examples for edu.stanford.nlp.ling SentenceUtils listToString

Introduction

In this page you can find the example usage for edu.stanford.nlp.ling SentenceUtils listToString.

Prototype

public static <T> String listToString(List<T> list) 

Source Link

Document

Returns the sentence as a string with a space between words.

Usage

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