quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_search.a #include <NGramCache.h> long length() const; float getScore(NGramModel& model, Context& context);
description:Context context; NGramModel ngram_model; NGramCache nsymbol_cache; nsymbol_cache.getScore(ngram_model, context);
static const String CLASS_NAME;
static const String DEF_PARAM;
static const long DEF_CAPACITY = 12000;
HashTable<Context, Float> cache_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
static boolean setDebug(Integral::DEBUG debug_level);
~NGramCache();
NGramCache();
NGramCache(const NGramCache& arg);
boolean assign(const NGramCache& arg);
not present.
long sofSize() const;
boolean read(Sof& sof, long tag, const String& cname = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& cname = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
boolean eq(const NGramCache& arg) const;
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE ctype = Integral::DEF_CMODE);
long length() const;
float getScore(NGramModel& model, Context& context);