(filenames, src=False, tgt=False)
| 59 | return dest_path("dict", lang) + ".txt" |
| 60 | |
| 61 | def build_dictionary(filenames, src=False, tgt=False): |
| 62 | assert src ^ tgt |
| 63 | return task.build_dictionary( |
| 64 | filenames, |
| 65 | workers=args.workers, |
| 66 | threshold=args.thresholdsrc if src else args.thresholdtgt, |
| 67 | nwords=args.nwordssrc if src else args.nwordstgt, |
| 68 | padding_factor=args.padding_factor, |
| 69 | ) |
| 70 | |
| 71 | target = not args.only_source |
| 72 |
no test coverage detected