| 131 | } |
| 132 | |
| 133 | unsigned long dimensions() const |
| 134 | { |
| 135 | return words.vocabulary_size() + chars.vocabulary_size(); |
| 136 | } |
| 137 | |
| 138 | // This saves the learned state, i.e. the vocabularies and idf weights. The tokenizer, |
| 139 | // the n-gram ranges and num_buckets are part of the code, so a saved object only makes |
no test coverage detected