diff --git a/examples/srl.cpp b/examples/srl.cpp index c38e98420..2ceb10622 100644 --- a/examples/srl.cpp +++ b/examples/srl.cpp @@ -1,14 +1,14 @@ #include #include -#include "ltp/SRL_DLL.h" +#include "ltp/srl_dll.h" int main(int argc, char * argv[]) { if (argc < 2) { return -1; } - SRL_LoadResource(argv[1]); + srl_load_resource(argv[1]); std::vector words; std::vector postags; @@ -20,7 +20,7 @@ int main(int argc, char * argv[]) { words.push_back("过问"); postags.push_back("v"); nes.push_back("O"); parse.push_back(make_pair(-1,"HED")); words.push_back("。"); postags.push_back("wp");nes.push_back("O"); parse.push_back(make_pair(2,"WP")); - DoSRL(words,postags,nes,parse,srl); + srl_dosrl(words,postags,parse,srl); for(int i = 0;i