https://github.com/RaRe-Technologies/gensim
Revision 2b9b1b3925cd9b2b53348b66a70438dd950df969 authored by M-Demay on 29 June 2021, 06:09:41 UTC, committed by GitHub on 29 June 2021, 06:09:41 UTC
* Implemented `reduced_windows` argument for Word2Vec. Co-Authored-By: Mathis Demay <mathis.demay.md@gmail.com> * Improve the way `reduced_windows` is passed around and used. * Renamed `reduced_windows` to `shrink_windows`. * Removed `shrink_windows` argument from `Word2Vec.train`. * Aesthetic fix. * Fixed old word2vec models' reloading. * Fixed undue docstring. * Added `shrink_windows` argument to Doc2Vec. * Added `shrink_windows` argument to FastText. * Fixed and optimized `shrink_windows` backend use. * `c.reduced_windows[:] = 0` syntax is not supported; as a consequence, all zero-value assignments due to `shrink_windows=False` have been rewritten as `for` loops. * Those changes have now been tested (cf. next commit). * NOTE: another way to proceed could be to initialize the `reduced_windows` array with zeros as values; it would then only be altered when `shrink_windows=True`. * Added tests for `shrink_windows=False` in Word2Vec-based models. * Added docstring mentions of `shrink_window` being experimental. * Rolled back some purely aesthetic changes. Co-authored-by: Paul Andrey <paul.andrey@hotmail.fr>
1 parent a164685
Tip revision: 2b9b1b3925cd9b2b53348b66a70438dd950df969 authored by M-Demay on 29 June 2021, 06:09:41 UTC
Implement `shrink_windows` argument for Word2Vec. (#3169)
Implement `shrink_windows` argument for Word2Vec. (#3169)
Tip revision: 2b9b1b3
File | Mode | Size |
---|---|---|
.circleci | ||
.github | ||
continuous_integration | ||
docs | ||
gensim | ||
multibuild @ a01ddf7 | ||
release | ||
.gitignore | -rw-r--r-- | 1.1 KB |
.gitmodules | -rw-r--r-- | 99 bytes |
.travis.yml | -rw-r--r-- | 1.3 KB |
CHANGELOG.md | -rw-r--r-- | 195.6 KB |
CONTRIBUTING.md | -rw-r--r-- | 2.7 KB |
COPYING | -rw-r--r-- | 25.9 KB |
HACKTOBERFEST.md | -rw-r--r-- | 2.5 KB |
ISSUE_TEMPLATE.md | -rw-r--r-- | 1.3 KB |
MANIFEST.in | -rw-r--r-- | 1.1 KB |
README.md | -rw-r--r-- | 9.5 KB |
azure-pipelines.yml | -rw-r--r-- | 593 bytes |
config.sh | -rwxr-xr-x | 750 bytes |
gensim Quick Start.ipynb | -rw-r--r-- | 626 bytes |
jupyter_execute_cell.png | -rw-r--r-- | 124.0 KB |
jupyter_home.png | -rw-r--r-- | 58.4 KB |
pip.sh | -rw-r--r-- | 250 bytes |
requirements_docs.txt | -rw-r--r-- | 263 bytes |
setup.cfg | -rw-r--r-- | 187 bytes |
setup.py | -rw-r--r-- | 14.0 KB |
tox.ini | -rw-r--r-- | 2.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...