提交 0c7d553c 编写于 作者: Q qiaolongfei

add python api_predict for quick start

上级 77130c31
...@@ -138,7 +138,7 @@ def main(): ...@@ -138,7 +138,7 @@ def main():
[label, text] = line.split("\t") [label, text] = line.split("\t")
labels.append(int(label)) labels.append(int(label))
batch.append([predict.get_index(text)]) batch.append([predict.get_index(text)])
print("lables is:") print("labels is:")
print labels print labels
predict.batch_predict(batch) predict.batch_predict(batch)
......
文件模式从 100644 更改为 100755
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册