Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 24, 2012
1 parent 5456476 commit c33e0e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libcrfpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ void crfpp_model_destroy(crfpp_model_t *c) {
}

const char* crfpp_model_strerror(crfpp_model_t *c) {
if (!c) {
return CRFPP::getLastError();
}
return reinterpret_cast<CRFPP::Model *>(c)->what();
}

Expand All @@ -105,6 +108,9 @@ crfpp_t* crfpp_new2(char *arg) {
}

const char* crfpp_strerror(crfpp_t *c) {
if (!c) {
return CRFPP::getLastError();
}
return reinterpret_cast<CRFPP::Tagger *>(c)->what();
}

Expand Down

0 comments on commit c33e0e7

Please sign in to comment.