嘉渊 před 2 roky
rodič
revize
820c9eaf40
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      funasr/datasets/small_datasets/preprocessor.py

+ 1 - 1
funasr/datasets/small_datasets/preprocessor.py

@@ -828,7 +828,7 @@ def build_preprocess(args, train):
             token_type=args.token_type,
             token_list=args.token_list,
             bpemodel=args.bpemodel,
-            non_linguistic_symbols=args.non_linguistic_symbols,
+            non_linguistic_symbols=args.non_linguistic_symbols if hasattr(args, "non_linguistic_symbols") else None,
             text_cleaner=args.cleaner,
             g2p_type=args.g2p,
             split_with_space=args.split_with_space if hasattr(args, "split_with_space") else False,