From 11120d11d1e14fb2b23cbe46fac906cb2f324868 Mon Sep 17 00:00:00 2001 From: shenyuhan Date: Mon, 23 Sep 2019 19:33:15 +0800 Subject: [PATCH] fix ci --- RELEASE.md | 2 +- demo/lac/lac_demo.py | 8 ++++---- demo/senta/senta_demo.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 66315e96..6e32c5cb 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,4 +1,4 @@ -# `v1.2.0` +# `v1.2.0` * 新增**超参优化Auto Fine-tune**,实现给定超参搜索空间,PaddleHub自动给出较佳的超参组合 * 支持两种优化策略:HAZero和PSHE2 diff --git a/demo/lac/lac_demo.py b/demo/lac/lac_demo.py index 59df78fb..2dafcdf9 100644 --- a/demo/lac/lac_demo.py +++ b/demo/lac/lac_demo.py @@ -19,10 +19,10 @@ if __name__ == "__main__": results = lac.lexical_analysis(data=inputs, use_gpu=True, batch_size=10) for result in results: if six.PY2: - print( - json.dumps(result['word'], encoding="utf8", ensure_ascii=False)) - print( - json.dumps(result['tag'], encoding="utf8", ensure_ascii=False)) + print(json.dumps( + result['word'], encoding="utf8", ensure_ascii=False)) + print(json.dumps( + result['tag'], encoding="utf8", ensure_ascii=False)) else: print(result['word']) print(result['tag']) diff --git a/demo/senta/senta_demo.py b/demo/senta/senta_demo.py index 328517d3..07446a86 100644 --- a/demo/senta/senta_demo.py +++ b/demo/senta/senta_demo.py @@ -21,7 +21,7 @@ if __name__ == "__main__": results[index]["text"] = text for index, result in enumerate(results): if six.PY2: - print( - json.dumps(results[index], encoding="utf8", ensure_ascii=False)) + print(json.dumps( + results[index], encoding="utf8", ensure_ascii=False)) else: print(results[index]) -- GitLab