kgrams  0.1.0
Public Member Functions | List of all members
kgramFreqsR Class Reference
Inheritance diagram for kgramFreqsR:
Inheritance graph
[legend]
Collaboration diagram for kgramFreqsR:
Collaboration graph
[legend]

Public Member Functions

 kgramFreqsR (size_t N)
 
 kgramFreqsR (size_t N, const Dictionary &d)
 
IntegerVector queryR (CharacterVector)
 
- Public Member Functions inherited from kgramFreqs
 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 Dictionarydictionary () const
 Return constant reference to Dictionary.
 

The documentation for this class was generated from the following files: