This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] offer load_w2v_binary method to load w2v binary file (#620)
* ✨ (w2v) offer load_w2v_binary method to load w2v binary file * 🐛 (w2v) expand user path * 🚧 (w2v) add preload flag. it decides to load default model or not. * 🐛 (w2v) preserve 0 for unknown tok * ✅ (w2v) add test for load_w2v_binary * ♻️ (w2v) If source is None, construct an empty Word2Vec class object. * ♻️ (w2v) add classmethod: from_binary as a constructor * 🎨 (w2v) rename from_binary -> from_w2v_binary * ♻️ (w2v) check source in w2v constructor * ♻️ (w2v) use file name extension to identify binary file * 🎨 (w2v) pyilnt: fix unused argument 'encoding' (unused-argument) * 📝 (w2v) update doc * 📝 (w2v) update description in w2v constructor
- Loading branch information
1 parent
6ec0c84
commit e1910c5
Showing
4 changed files
with
554 additions
and
6 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
Binary file not shown.
Oops, something went wrong.