From 74f4f7b4c7228763fd923d2a27eb7d2515f89907 Mon Sep 17 00:00:00 2001
From: Shi Xian <40013335+R1ckShi@users.noreply.github.com>
Date: 星期五, 08 三月 2024 11:33:04 +0800
Subject: [PATCH] seaco with cifv2 (#1450)
---
funasr/register.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/register.py b/funasr/register.py
index ebfdaac..cfa1b20 100644
--- a/funasr/register.py
+++ b/funasr/register.py
@@ -29,7 +29,7 @@
flag = key in classes_key
if classes_key.endswith("_meta") and flag:
print(f"----------- ** {classes_key.replace('_meta', '')} ** --------------")
- headers = ["class name", "class location"]
+ headers = ["register name", "class name", "class location"]
metas = []
for register_key, meta in classes_dict.items():
metas.append(meta)
@@ -67,8 +67,8 @@
class_line = inspect.getsourcelines(target_class)[1]
pattern = r'^.+/funasr/'
class_file = re.sub(pattern, 'funasr/', class_file)
- meata_data = [f"{target_class.__name__}", f"{class_file}:{class_line}"]
- # meata_data = [f"{target_class.__name__}", f"{registry_key}", f"{class_file}:{class_line}"]
+ # meata_data = [f"{target_class.__name__}", f"{class_file}:{class_line}"]
+ meata_data = [f"{registry_key}", f"{target_class.__name__}", f"{class_file}:{class_line}"]
registry_meta[registry_key] = meata_data
# print(f"Registering class: {class_file}:{class_line} - {target_class.__name__} as {registry_key}")
return target_class
--
Gitblit v1.9.1