| 207 | } |
| 208 | |
| 209 | static std::pair<sample_type, sample_type> count_ngrams(const std::vector<string>& tokens) |
| 210 | { |
| 211 | return { |
| 212 | hash_word_ngrams(tokens, min_word_n, max_word_n, num_buckets), |
| 213 | hash_char_ngrams(tokens, min_char_n, max_char_n, num_buckets) |
| 214 | }; |
| 215 | } |
| 216 | |
| 217 | tfidf_transformer<sample_type> words = make_tfidf(); |
| 218 | tfidf_transformer<sample_type> chars = make_tfidf(); |
nothing calls this directly
no test coverage detected