crodas\TextRank\DefaultEvents::get_sentences PHP Method

get_sentences() public method

public get_sentences ( $text )
    public function get_sentences($text)
    {
        $sentences = preg_split('/(\\n+)|(\\.\\W)/', $text, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
        return array_values(array_filter(array_map('trim', $sentences)));
    }