From c91bc3208ee78af2ebb7cc06887c80970e767309 Mon Sep 17 00:00:00 2001 From: wei-z <32572815+wei-z-git@users.noreply.github.com> Date: Wed, 14 Sep 2022 21:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20-d=20=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E6=97=B6=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=20(#741)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加 -d 指定数据集时错误提示 Warning: you do not have any of the recognized datasets in G:\AI\Dataset\aidatatang_200zh\aidatatang_200zh Please note use 'E:\datasets' as root path instead of 'E:\datasetsidatatang_200zh\corpus/test' as a example . The recognized datasets are: * Update ui.py * Update ui.py --- toolbox/ui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolbox/ui.py b/toolbox/ui.py index fe51e73..d50f30c 100644 --- a/toolbox/ui.py +++ b/toolbox/ui.py @@ -274,7 +274,9 @@ class UI(QDialog): if datasets_root is None or len(datasets) == 0: msg = "Warning: you d" + ("id not pass a root directory for datasets as argument" \ if datasets_root is None else "o not have any of the recognized datasets" \ - " in %s" % datasets_root) + " in %s \n" \ + "Please note use 'E:\datasets' as root path " \ + "instead of 'E:\datasets\aidatatang_200zh\corpus\test' as an example " % datasets_root) self.log(msg) msg += ".\nThe recognized datasets are:\n\t%s\nFeel free to add your own. You " \ "can still use the toolbox by recording samples yourself." % \