diff --git a/RELEASE.md b/RELEASE.md index 66315e962d781f2e5f5b712159182ee8b1e5c236..6e32c5cb9d7fdaf41a63b58e0e175c9210972ec4 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 59df78fb95fffc6982ea93a27daa5ad8bafe8522..2dafcdf9aedb89a99c272a46062ed24854bb8f96 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 328517d306069728dd523343594f6930f2aa69ef..07446a86d1d02d77c41ae76434a8574ef1ffd7ca 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])