Skip to content

Commit

Permalink
ltp_server: resupport NER and SRL
Browse files Browse the repository at this point in the history
  • Loading branch information
carfly committed Jul 31, 2013
1 parent d741836 commit fa9ea10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/ltp_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa9ea10

Please sign in to comment.