-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a tokenizer class (WIP) * fix word_to_wid logic and add example for using tokenizer class * WIP changes to make token ids valid inputs of retrieve, still need to be thoroughly tested * add todo to example * Major refactoring of tokenizer dclass * Minor QOL improvements * Refactor streaming_tokenize to be faster by reducing unecessary set checks * Remove _word_to_wid to simplify vocab design. Now, word_to_id is updated when stemmer is not used * Update beir.py utils to use new URL * Remove unused function, lint code, add test cases * Add example of using the tokenizer * Rename example * Add details about the new tokenizer class in readme * Update class to test tokenize in int, ids, strings, tuple
- Loading branch information
Showing
6 changed files
with
570 additions
and
58 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
Oops, something went wrong.