|
|
|
|
|
|
|
__init__(self,
*args)
__init__(NGramModel self, char const * path) -> NGramModel
__init__(NGramModel self, Config config, LogMath logmath, char const
* path) -> NGramModel |
source code
|
|
|
__swig_destroy__(...)
delete_NGramModel(NGramModel self) |
|
|
|
|
|
write(self,
path,
ftype)
write(NGramModel self, char const * path, int ftype) |
source code
|
|
|
str_to_type(self,
str)
str_to_type(NGramModel self, char const * str) -> int |
source code
|
|
|
type_to_str(self,
type)
type_to_str(NGramModel self, int type) -> char const * |
source code
|
|
|
|
|
|
|
add_word(self,
word,
weight)
add_word(NGramModel self, char const * word, float weight) -> int |
source code
|
|
|
prob(self,
n)
prob(NGramModel self, size_t n) -> int |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|