diff --git a/src/server/ltp_server.cpp b/src/server/ltp_server.cpp index 455ec899b..7accb1a41 100644 --- a/src/server/ltp_server.cpp +++ b/src/server/ltp_server.cpp @@ -114,10 +114,14 @@ static int Service(struct mg_connection *conn) ltp.wordseg(); } else if(str_type == "pos"){ ltp.postag(); + } else if(str_type == "ner"){ + ltp.ner(); } else if(str_type == "dp"){ ltp.parser(); + } else if(str_type == "srl"){ + ltp.srl(); } else { - ltp.parser(); + ltp.srl(); } string strResult;