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); 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; } 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; }