kgrams
0.1.0
|
Public Member Functions | |
kgramFreqsR (size_t N) | |
kgramFreqsR (size_t N, const Dictionary &d) | |
IntegerVector | queryR (CharacterVector) |
![]() | |
kgramFreqs (size_t N) | |
Constructor with empty dictionary. More... | |
kgramFreqs (size_t N, const std::vector< std::string > &dict) | |
Constructor with predefined dictionary. More... | |
kgramFreqs (size_t N, const Dictionary &dict) | |
Constructor with predefined dictionary. More... | |
void | process_sentences (const std::vector< std::string > &, bool fixed_dictionary=false) |
store k-gram counts from a list of sentences. More... | |
double | query (std::string) const |
Retrieve counts for a given k-gram. More... | |
bool | dict_contains (std::string word) const |
Check if a word is found in the dictionary. More... | |
size_t | N () const |
Maximum order of k-grams. More... | |
size_t | V () const |
Dictionary size. More... | |
const Dictionary & | dictionary () const |
Return constant reference to Dictionary. | |