eleve.c_leveldb
¶
Provide a Storage and a Trie that use LevelDB as disk backend but that are fully writen in C++.
-
class
eleve.c_leveldb.cleveldb.
LeveldbStorage
¶ -
__init__
((object)arg1, (str)path[, (int)default_ngram_length]) → None :¶ - C++ signature :
- void __init__(_object*,std::string [,unsigned long])
-
add_ngram
((LeveldbStorage)arg1, (list)ngram[, (int)freq=1]) → None :¶ - C++ signature :
- void add_ngram(PyLeveldbStorage {lvalue},boost::python::list [,int=1])
-
add_sentence
((LeveldbStorage)arg1, (list)sentence[, (int)freq=1[, (int)ngram_length=0]]) → None :¶ - C++ signature :
- void add_sentence(PyLeveldbStorage {lvalue},boost::python::list [,int=1 [,unsigned long=0]])
-
clear
((LeveldbStorage)arg1) → None :¶ - C++ signature :
- void clear(PyLeveldbStorage {lvalue})
-
close
((LeveldbStorage)arg1) → None :¶ - C++ signature :
- void close(PyLeveldbStorage {lvalue})
-
query_autonomy
((LeveldbStorage)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_autonomy(PyLeveldbStorage {lvalue},boost::python::list)
-
query_count
((LeveldbStorage)arg1, (list)ngram) → int :¶ - C++ signature :
- int query_count(PyLeveldbStorage {lvalue},boost::python::list)
-
query_entropy
((LeveldbStorage)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_entropy(PyLeveldbStorage {lvalue},boost::python::list)
-
query_ev
((LeveldbStorage)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_ev(PyLeveldbStorage {lvalue},boost::python::list)
-
update_stats
((LeveldbStorage)arg1) → None :¶ - C++ signature :
- void update_stats(PyLeveldbStorage {lvalue})
-
-
class
eleve.c_leveldb.cleveldb.
LeveldbTrie
¶ -
__init__
((object)arg1, (str)path) → None :¶ - C++ signature :
- void __init__(_object*,std::string)
-
add_ngram
((LeveldbTrie)arg1, (list)ngram[, (int)freq=1]) → None :¶ - C++ signature :
- void add_ngram(PyLeveldbTrie {lvalue},boost::python::list [,int=1])
-
clear
((LeveldbTrie)arg1) → None :¶ - C++ signature :
- void clear(PyLeveldbTrie {lvalue})
-
close
((LeveldbTrie)arg1) → None :¶ - C++ signature :
- void close(PyLeveldbTrie {lvalue})
-
max_depth
((LeveldbTrie)arg1) → int :¶ - C++ signature :
- unsigned long max_depth(PyLeveldbTrie {lvalue})
-
query_autonomy
((LeveldbTrie)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_autonomy(PyLeveldbTrie {lvalue},boost::python::list)
-
query_count
((LeveldbTrie)arg1, (list)ngram) → int :¶ - C++ signature :
- int query_count(PyLeveldbTrie {lvalue},boost::python::list)
-
query_entropy
((LeveldbTrie)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_entropy(PyLeveldbTrie {lvalue},boost::python::list)
-
query_ev
((LeveldbTrie)arg1, (list)ngram) → float :¶ - C++ signature :
- float query_ev(PyLeveldbTrie {lvalue},boost::python::list)
-
update_stats
((LeveldbTrie)ngram) → None :¶ - C++ signature :
- void update_stats(PyLeveldbTrie {lvalue})
-