提交 11120d11 编写于 作者: S shenyuhan

fix ci

上级 276c81fa
# `v1.2.0` # `v1.2.0`
* 新增**超参优化Auto Fine-tune**,实现给定超参搜索空间,PaddleHub自动给出较佳的超参组合 * 新增**超参优化Auto Fine-tune**,实现给定超参搜索空间,PaddleHub自动给出较佳的超参组合
* 支持两种优化策略:HAZero和PSHE2 * 支持两种优化策略:HAZero和PSHE2
......
...@@ -19,10 +19,10 @@ if __name__ == "__main__": ...@@ -19,10 +19,10 @@ if __name__ == "__main__":
results = lac.lexical_analysis(data=inputs, use_gpu=True, batch_size=10) results = lac.lexical_analysis(data=inputs, use_gpu=True, batch_size=10)
for result in results: for result in results:
if six.PY2: if six.PY2:
print( print(json.dumps(
json.dumps(result['word'], encoding="utf8", ensure_ascii=False)) result['word'], encoding="utf8", ensure_ascii=False))
print( print(json.dumps(
json.dumps(result['tag'], encoding="utf8", ensure_ascii=False)) result['tag'], encoding="utf8", ensure_ascii=False))
else: else:
print(result['word']) print(result['word'])
print(result['tag']) print(result['tag'])
...@@ -21,7 +21,7 @@ if __name__ == "__main__": ...@@ -21,7 +21,7 @@ if __name__ == "__main__":
results[index]["text"] = text results[index]["text"] = text
for index, result in enumerate(results): for index, result in enumerate(results):
if six.PY2: if six.PY2:
print( print(json.dumps(
json.dumps(results[index], encoding="utf8", ensure_ascii=False)) results[index], encoding="utf8", ensure_ascii=False))
else: else:
print(results[index]) print(results[index])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册