public function getCollocations()
    {
        $nGramTokens = ngrams($this->tokens, $this->nGramSize);
        return freq_dist($nGramTokens)->getKeyValuesByFrequency();
    }
public function getCollocations()
    {
        $nGramTokens = ngrams($this->tokens, $this->nGramSize);
        return freq_dist($nGramTokens)->getKeyValuesByFrequency();
    }
public function getCollocations ( ) { $ nGramTokens = ngrams ( $ this -> tokens , $ this -> nGramSize ) ; return freq_dist ( $ nGramTokens ) -> getKeyValuesByFrequency ( ) ; }
Returns a naive implementation of collocations
@return array
Returns a naive implementation of collocations