-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add common_terms parameter This parameter is being propagated to the underlying models.Phrases class. * add tests for new common_terms parameter * utilize models.phrases.Phraser class this avoids the following warning: "UserWarning: For a faster implementation, use the gensim.models.phrases.Phraser class" * add testCompareToOld, add pre-trained Phrases model * use pickle to load old PhrasesTransformer * allow setting Phrases model without setting Phraser model A pre-trained Phrases model (self.gensim_model) may be set to avoid using the fit() method. In transform(), the also necessary Phraser model (self.phraser) will be instantiated if it hasn't been before. * open pickle file * add __setstate__ for backward compatibility * use pickle protocol 2 * test loading new phrases transformer
- Loading branch information
1 parent
4543646
commit 367bdbd
Showing
4 changed files
with
104 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
Binary file not shown.
Binary file not shown.
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