From fa9ea10cc7fd16a1b644d6493b71ee4504d982cf Mon Sep 17 00:00:00 2001 From: Wanxiang Che Date: Wed, 31 Jul 2013 23:12:30 +0800 Subject: [PATCH] ltp_server: resupport NER and SRL --- src/server/ltp_server.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;