提交 9ce2b1dc 编写于 作者: S shenyuhan

add single_app()

上级 03efd82b
......@@ -60,6 +60,8 @@ def predict_lexical_analysis(module, input_text, extra=[]):
user_dict = extra[0]
results = predict_method(
data=data, user_dict=user_dict, use_gpu=use_gpu)
for path in extra:
os.remove(path)
except Exception as err:
return {"result": "Please check data format!"}
return results
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册