Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 编译错误 #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/cb_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/cb_ngram_feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion include/thulac_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down