-
-
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.
Merge branch 'develop' into fix_1589
- Loading branch information
Showing
512 changed files
with
159,808 additions
and
18,159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/python:2.7 | ||
|
||
working_directory: ~/gensim | ||
|
||
steps: | ||
- checkout | ||
|
||
- restore_cache: | ||
key: pip-cache | ||
|
||
- run: | ||
name: Apt install (for latex render) | ||
command: | | ||
sudo apt-get -yq update | ||
sudo apt-get -yq remove texlive-binaries --purge | ||
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install dvipng texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk | ||
- run: | ||
name: Basic installation (tox) | ||
command: | | ||
python -m virtualenv venv | ||
source venv/bin/activate | ||
pip install tox | ||
- run: | ||
name: Build documentation | ||
command: | | ||
source venv/bin/activate | ||
tox -e docs -vv | ||
- store_artifacts: | ||
path: docs/src/_build | ||
destination: documentation | ||
|
||
- save_cache: | ||
key: pip-cache | ||
paths: | ||
- "~/.cache/pip" | ||
- "~/.ccache" | ||
- "~/.pip-cache" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
sudo: false | ||
|
||
cache: | ||
apt: true | ||
directories: | ||
- $HOME/.cache/pip | ||
- $HOME/.ccache | ||
- $HOME/.pip-cache | ||
dist: trusty | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
before_install: | ||
- wget 'http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh' -O miniconda.sh | ||
- chmod +x miniconda.sh | ||
- ./miniconda.sh -b | ||
- export PATH=/home/travis/miniconda2/bin:$PATH | ||
- conda update --yes conda | ||
install: | ||
- conda create --yes -n gensim-test python=$TRAVIS_PYTHON_VERSION pip atlas numpy scipy | ||
- source activate gensim-test | ||
- pip install pyemd | ||
- pip install annoy | ||
- pip install testfixtures | ||
- pip install unittest2 | ||
- pip install Morfessor==2.0.2a4 | ||
- python setup.py install | ||
script: python setup.py test | ||
|
||
|
||
matrix: | ||
include: | ||
- python: '2.7' | ||
env: TOXENV="flake8" | ||
|
||
- python: '2.7' | ||
env: TOXENV="py27-linux" | ||
|
||
- python: '3.5' | ||
env: TOXENV="py35-linux" | ||
|
||
- python: '3.6' | ||
env: TOXENV="py36-linux" | ||
|
||
install: pip install tox | ||
script: tox -vv |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,36 @@ | ||
Please see [contribution-guide.org](http://www.contribution-guide.org/) for steps we expect from contributors before submitting an issue or bug report. Be as concrete as possible, include relevant logs, package versions etc. | ||
# How to submit an issue? | ||
|
||
Please check the [Gensim FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) page before posting. | ||
First, please see [contribution-guide.org](http://www.contribution-guide.org/) for the steps we expect from contributors before submitting an issue or bug report. Be as concrete as possible, include relevant logs, package versions etc. | ||
|
||
**The proper place for open-ended questions is the [gensim mailing list](https://groups.google.com/forum/#!forum/gensim).** Github is not the right place for research discussions or feature requests. | ||
Also, please check the [Gensim FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) page before posting. | ||
|
||
For developers: see our [Developer Page](https://github.com/piskvorky/gensim/wiki/Developer-page#code-style) for details on code style, testing and similar. | ||
**The proper place for open-ended questions is the [Gensim mailing list](https://groups.google.com/forum/#!forum/gensim).** Github is not the right place for research discussions or feature requests. | ||
|
||
Thanks! | ||
# How to add a new feature or create a pull request? | ||
|
||
1. <a href="https://github.com/RaRe-Technologies/gensim/fork">Fork the Gensim repository</a> | ||
2. Clone your fork: `git clone https://github.com/<YOUR_GITHUB_USERNAME>/gensim.git` | ||
3. Create a new branch based on `develop`: `git checkout -b my-feature develop` | ||
4. Setup your Python enviroment | ||
- Create a new [virtual environment](https://virtualenv.pypa.io/en/stable/): `pip install virtualenv; virtualenv gensim_env` and activate it: | ||
- For linux: `source gensim_env/bin/activate` | ||
- For windows: `gensim_env\Scripts\activate` | ||
- Install Gensim and its test dependencies in [editable mode](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs): | ||
- For linux: `pip install -e .[test]` | ||
- For windows: `pip install -e .[test-win]` | ||
5. Implement your changes | ||
6. Check that everything's OK in your branch: | ||
- Check it for PEP8: `tox -e flake8` | ||
- Build its documentation (works only for MacOS/Linux): `tox -e docs` (documentation stored in `docs/src/_build`) | ||
- Run unit tests: `tox -e py{version}-{os}`, for example `tox -e py27-linux` or `tox -e py36-win` where | ||
- `{version}` is one of `27`, `35`, `36` | ||
- `{os}` is either `win` or `linux` | ||
7. Add files, commit and push: `git add ... ; git commit -m "my commit message"; git push origin my-feature` | ||
8. [Create a PR](https://help.github.com/articles/creating-a-pull-request/) on Github. Write a **clear description** for your PR, including all the context and relevant information, such as: | ||
- The issue that you fixed, e.g. `Fixes #123` | ||
- Motivation: why did you create this PR? What functionality did you set out to improve? What was the problem + an overview of how you fixed it? Whom does it affect and how should people use it? | ||
- Any other useful information: links to other related Github or mailing list issues and discussions, benchmark graphs, academic papers… | ||
|
||
P.S. for developers: see our [Developer Page](https://github.com/piskvorky/gensim/wiki/Developer-page#code-style) for details on the Gensim code style, CI, testing and similar. | ||
|
||
**Thanks and let's improve the open source world together!** |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
If your issue is a usage or a general question, please submit it here instead: | ||
- Mailing List: https://groups.google.com/forum/#!forum/gensim | ||
For more information, see Recipes&FAQ: https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ | ||
--> | ||
|
||
<!-- Instructions For Filing a Bug: https://github.com/RaRe-Technologies/gensim/blob/develop/CONTRIBUTING.md --> | ||
|
||
#### Description | ||
TODO: change commented example | ||
<!-- Example: Vocabulary size is not what I expected when training Word2Vec. --> | ||
|
||
#### Steps/Code/Corpus to Reproduce | ||
<!-- | ||
Example: | ||
``` | ||
from gensim.models import word2vec | ||
sentences = ['human', 'machine'] | ||
model = word2vec.Word2Vec(sentences) | ||
print(model.syn0.shape) | ||
``` | ||
If the code is too long, feel free to put it in a public gist and link | ||
it in the issue: https://gist.github.com | ||
--> | ||
|
||
#### Expected Results | ||
<!-- Example: Expected shape of (100,2).--> | ||
|
||
#### Actual Results | ||
<!-- Example: Actual shape of (100,5). | ||
Please paste or specifically describe the actual output or traceback. --> | ||
|
||
#### Versions | ||
<!-- | ||
Please run the following snippet and paste the output below. | ||
import platform; print(platform.platform()) | ||
import sys; print("Python", sys.version) | ||
import numpy; print("NumPy", numpy.__version__) | ||
import scipy; print("SciPy", scipy.__version__) | ||
import gensim; print("gensim", gensim.__version__) | ||
from gensim.models import word2vec;print("FAST_VERSION", word2vec.FAST_VERSION) | ||
--> | ||
|
||
|
||
<!-- Thanks for contributing! --> | ||
|
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.