Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow text-dict style vocab on LM Dataset (#1235)
* allow text-dict in LMDataset * fix lm vocab loading, allow reuse of index * replace SyntaxError by regex-test * updated regex, use literal_eval * replace * by + in regex
- Loading branch information
1 parent
20f06f4
commit 2c0bf36
Showing
1 changed file
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters