提交 31a7d017 编写于 作者: S shenyuhan

add single_app()

上级 a4a8245b
...@@ -54,7 +54,7 @@ def predict_lexical_analysis(module, input_text, extra=[]): ...@@ -54,7 +54,7 @@ def predict_lexical_analysis(module, input_text, extra=[]):
predict_method = getattr(module, method_name) predict_method = getattr(module, method_name)
data = {"text": input_text} data = {"text": input_text}
try: try:
if extra is []: if extra == []:
results = predict_method(data=data, use_gpu=use_gpu) results = predict_method(data=data, use_gpu=use_gpu)
else: else:
user_dict = extra[0] user_dict = extra[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册