name: NGramCache

synopsis:


g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_search.a

#include <NGramCache.h>

long length() const;
float getScore(NGramModel& model, Context& context);
quick start:


Context context;
NGramModel ngram_model;
NGramCache nsymbol_cache;

nsymbol_cache.getScore(ngram_model, context);

description:

This class computes the N-Gram score for a sequence on N symbols represented by the input context:

Pr(context) = Pr(context(K - 1) | context(K - 2), .., context(K - N))

where K is the current context index and N is the length of the context.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: