From 21e4fe7f6695c8b74e6ca9ca1ff1ead2feffd768 Mon Sep 17 00:00:00 2001 From: byronhe Date: Tue, 24 Oct 2017 16:00:12 +0800 Subject: [PATCH 1/3] Update thulac_base.h --- include/thulac_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/thulac_base.h b/include/thulac_base.h index 1ac8869..02599ee 100755 --- a/include/thulac_base.h +++ b/include/thulac_base.h @@ -60,7 +60,7 @@ void get_label_info(const char* filename, char** label_info, int** pocs_to_tags) FILE *fp; fp = fopen(filename, "r"); if(!fp){ - fprintf(stderr, "[ERROR] cws_label.txt file not find ", filename); + fprintf(stderr, "[ERROR] file %s not find ", filename); return; } From e9bf5c7d781573b32b469be6a8ecff51850691d5 Mon Sep 17 00:00:00 2001 From: byronhe Date: Tue, 24 Oct 2017 16:00:45 +0800 Subject: [PATCH 2/3] Update cb_ngram_feature.h --- include/cb_ngram_feature.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cb_ngram_feature.h b/include/cb_ngram_feature.h index f0254ac..a1d22de 100644 --- a/include/cb_ngram_feature.h +++ b/include/cb_ngram_feature.h @@ -177,7 +177,7 @@ class NGramFeature{ inline void update_weight(int *value_offset,int base,int del,int label,int delta,long steps){ int ind=dat[base].base+del; if(ind>=dat_size||dat[ind].check!=base)return; - register int offset=dat[dat[base].base+del].base; + int offset=dat[dat[base].base+del].base; model->update_fl_weight(offset,label,delta,steps); //model->fl_weights[offset*model->l_size+label]+=delta; } From 16d4753078906e63901eb3c3d5b6efcfb8009c59 Mon Sep 17 00:00:00 2001 From: byronhe Date: Tue, 24 Oct 2017 16:01:55 +0800 Subject: [PATCH 3/3] Update cb_model.h --- include/cb_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cb_model.h b/include/cb_model.h index 341b922..e7c22d0 100755 --- a/include/cb_model.h +++ b/include/cb_model.h @@ -84,7 +84,7 @@ class BasicModel{ size_t rtn_value; pFile=fopen(filename,"rb"); if(!pFile){ - fprintf(stderr,"[ERROR] models path is incorrect, please check the \"models_dir\" parameter or make sure \"models\" is included in your root directory.\n",filename); + fprintf(stderr,"[ERROR] models path %s is incorrect, please check the \"models_dir\" parameter or make sure \"models\" is included in your root directory.\n",filename); } rtn_value=fread(&(this->l_size),4,1,pFile); rtn_value=fread(&(this->f_size),4,1,pFile);