[irstlm] 03/78: added debugging info
Giulio Paci
giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:47:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
giuliopaci-guest pushed a commit to tag adaptiveLM.v0.10
in repository irstlm.
commit 35162d35bca944187b7f593b37257101c096411c
Author: nicolabertoldi <bertoldi at fbk.eu>
Date: Tue Nov 3 18:45:07 2015 +0100
added debugging info
---
src/lmtable.h | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/lmtable.h b/src/lmtable.h
index 07e25d0..d33e6f1 100644
--- a/src/lmtable.h
+++ b/src/lmtable.h
@@ -65,12 +65,6 @@
typedef enum {INTERNAL,QINTERNAL,LEAF,QLEAF} LMT_TYPE;
typedef char* node;
-typedef enum {LMT_FIND, //!< search: find an entry
- LMT_ENTER, //!< search: enter an entry
- LMT_INIT, //!< scan: start scan
- LMT_CONT //!< scan: continue scan
-} LMT_ACTION;
-
typedef unsigned int table_entry_pos_t; //type for pointing to a full ngram in the table
typedef unsigned long table_pos_t; // type for pointing to a single char in the table
typedef unsigned char qfloat_t; //type for quantized probabilities
@@ -339,16 +333,16 @@ public:
void checkbounds(int level);
- inline int get(ngram& ng) {
+ virtual inline int get(ngram& ng) {
return get(ng,ng.size,ng.size);
}
- int get(ngram& ng,int n,int lev);
+ virtual int get(ngram& ng,int n,int lev);
int succscan(ngram& h,ngram& ng,LMT_ACTION action,int lev);
virtual const char *maxsuffptr(ngram ong, unsigned int* size=NULL);
virtual const char *cmaxsuffptr(ngram ong, unsigned int* size=NULL);
- virtual const char *cmaxsuffptr(int* codes, int sz, unsigned int* size=NULL);
+ virtual const char *cmaxsuffptr(int* codes, int sz, unsigned int* size=NULL);
inline void putmem(char* ptr,int value,int offs,int size) {
MY_ASSERT(ptr!=NULL);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git
More information about the debian-science-commits
mailing list