Write plain text token list.
(path: str, tokens: list)
| 269 | |
| 270 | |
| 271 | def write_tokens_txt(path: str, tokens: list): |
| 272 | """Write plain text token list.""" |
| 273 | with open(path, "w") as f: |
| 274 | for t in tokens: |
| 275 | f.write(t + "\n") |
| 276 | print(f" {path}: {len(tokens)} tokens") |
| 277 | |
| 278 | |
| 279 | def write_tokens_h(path: str, tokens: list): |