-
-
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.
Browse files
Browse the repository at this point in the history
* initial commit of alternate scoring now with a scoring parameter to initialize a Phrases object, defaults to the mikolov paper scoring, but also switchable to 'npmi', normalized pointwise mutual information moved scoring calculation to call a function, scoring functions are now top level functions in models.Phrases that are called when calculating scores in models.Phrases.export_phrases * all existing tests now pass fixed some bugs with the pluggable scoring that were causing tests to fail. * added testScoringOriginal to test default scoring * better name for test for default scorer * moved scoring parameter checking logic to initialization * fixed bugin export_phrases scoring function creation * test for npmi scoring * typo in phrases docstring * copy scoring setting to Phraser * fixing travis-ci errors * no need to specify long vs. int
- Loading branch information
1 parent
f3bf792
commit 5f54b60
Showing
2 changed files
with
111 additions
and
24 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