提交 957bfa09 编写于 作者: M MRXLT

remove useless code

上级 dc7ce66e
......@@ -69,9 +69,8 @@ class SentaService(WebService):
def init_senta_reader(self):
self.senta_reader = SentaReader(vocab_path=self.senta_dict_path)
def preprocess(self, feed={}, fetch={}):
def preprocess(self, feed=[], fetch=[]):
feed_data = self.lac_reader.process(feed[0]["words"])
fetch = ["crf_decode"]
if self.show:
print("---- lac reader ----")
print(feed_data)
......@@ -88,7 +87,6 @@ class SentaService(WebService):
if self.show:
print("---- senta reader ----")
print("feed_data", feed_data)
fetch = ["class_probs"]
return {"words": feed_data}, fetch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册