(title="")
| 187 | def main(args: argparse.Namespace) -> None: |
| 188 | |
| 189 | def print_separator(title=""): |
| 190 | if title: |
| 191 | print(f"\n{'='*50}") |
| 192 | print(f" {title}") |
| 193 | print(f"{'='*50}") |
| 194 | else: |
| 195 | print(f"\n{'='*50}") |
| 196 | |
| 197 | # 检查参数 |
| 198 | if not any([args.encode, args.decode, args.vocab_size, args.info, args.vocab_export]): |