Skip to content

Commit

Permalink
revise copyright information in ner training suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Jan 15, 2014
1 parent 3721821 commit ed677ef
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/ner/otner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@ using namespace ltp::utility;
using namespace ltp::ner;

void usage(void) {
std::cerr << "otcws - Training and testing suite for Chinese Word segmentation" << std::endl;
std::cerr << "Copyright (C) 2012-2013 HIT-SCIR" << std::endl;
std::cerr << std::endl;
std::cerr << "usage: ./otcws <config_file>" << std::endl;
std::cerr << std::endl;
std::cerr << "otcws - Training and testing suite for Named Entity Recognization"
<< std::endl;
std::cerr << "Copyright (C) 2012-2014 HIT-SCIR" << std::endl;
std::cerr << std::endl;
std::cerr << "usage: ./otner <config_file>" << std::endl;
std::cerr << std::endl;
}

int main(int argc, const char * argv[]) {
if (argc < 2 || (argv[1][0] == '-' && argv[1][1] == 'h')) {
usage();
return -1;
}
if (argc < 2 || (argv[1][0] == '-' && argv[1][1] == 'h')) {
usage();
return -1;
}

ConfigParser cfg(argv[1]);
ConfigParser cfg(argv[1]);

if (!cfg) {
ERROR_LOG("Failed to parse config file.");
return -1;
}
if (!cfg) {
ERROR_LOG("Failed to parse config file.");
return -1;
}

NER engine(cfg);
engine.run();
return 0;
NER engine(cfg);
engine.run();
return 0;
}

0 comments on commit ed677ef

Please sign in to comment.