protected function toArray(array $stopWords) 
    {
        $data = [];
        foreach($stopWords as $key => $value)
        {
            $data[] = ['token' => utf8_encode($key), 'freq' => $value];
        }
        return $data;
    }