Skip to content

Commit

Permalink
更新server
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Jan 11, 2021
1 parent 8f331be commit f254946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _predict(self, sentences: List[str]):
batch_pos = self.ltp.pos(hidden)
batch_ner = self.ltp.ner(hidden)
batch_srl = self.ltp.srl(hidden)
batch_dep = self.ltp.dep(hidden)
batch_dep = self.ltp.dep(hidden, fast=False)
batch_sdp = self.ltp.sdp(hidden, mode='mix')

for sent, seg, pos, ner, srl, dep, sdp in \
Expand Down

0 comments on commit f254946

Please sign in to comment.