#include <ngrams.h>
Public Member Functions | |
| NGramsProcessor (NGramStore &ngrams) | |
| Pass n-gram store to n-grams processor to retrieve all *-frequencies. | |
| bool | next (void) |
| Counts values of frequency table for next N-gram. | |
| const NGramFrequencies & | ngram_frequencies (void) const |
| Frequencies object is returned by reference, so it stays valid till the following next() call. | |
Private Attributes | |
| const NGramStore & | _ngram_store |
| Reference to NGramStore to be processed. | |
| NGramStore::hash_table_t::const_iterator | _next |
| Iterator to the next item to be processed. | |
| NGramStore::hash_table_t::const_iterator | _end |
| Iterator to the end of store. | |
| NGramFrequencies | _ngram_frequencies |
| Recently gathered frequencies of certain N-gram. | |
| ace::NGramsProcessor::NGramsProcessor | ( | NGramStore & | ngrams | ) | [inline] |
Pass n-gram store to n-grams processor to retrieve all *-frequencies.
| ngrams | N-gram store. |
| bool ace::NGramsProcessor::next | ( | void | ) |
Counts values of frequency table for next N-gram.
| const NGramFrequencies& ace::NGramsProcessor::ngram_frequencies | ( | void | ) | const [inline] |
Frequencies object is returned by reference, so it stays valid till the following next() call.
const NGramStore& ace::NGramsProcessor::_ngram_store [private] |
Reference to NGramStore to be processed.
Iterator to the next item to be processed.
Iterator to the end of store.
Recently gathered frequencies of certain N-gram.
1.5.6