-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Init tokenizer from filehandle (#76)
* feat: allow creating JurassicTokenizer from model file handle * fix: Add default for model_path and model_file_handle * feat: Add JurassicTokenizer.from_file_path classmethod * fix: remove model_path=None in JurassicTokenizer.from_file_handle * fix: rename _assert_exactly_one to _validate_init and make it not static * refactor: semantics * test: Added tests --------- Co-authored-by: Asaf Gardin <asafg@ai21.com>
- Loading branch information
1 parent
7b8348d
commit dcb73a7
Showing
2 changed files
with
100 additions
and
4 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
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