Skip to content

Commit 159f095

Browse files
committed
Merge branch 'develop' of https://github.com/RaRe-Technologies/gensim into smart_open
* 'develop' of https://github.com/RaRe-Technologies/gensim: Fix positional params used for `gensim.models.CoherenceModel` in `gensim.models.callbacks` (piskvorky#1823) Fix parameter setting for `FastText.train`. Fix piskvorky#1818 (piskvorky#1837) Refactor tests for `gensim.corpora.WikiCorpus`(piskvorky#1821) Fix formula in `gensim.summarization.bm25`. Fix piskvorky#1828 (piskvorky#1833) Fix docstrings for `gensim.matutils` (piskvorky#1804) Fix docstrings for `gensim.models.logentropy_model` (piskvorky#1803) Fix docstrings for `gensim.models.normmodel` (piskvorky#1805) Refactor API reference `gensim.topic_coherence`. Fix piskvorky#1669 (piskvorky#1714) Add CircleCI for build documentation. Fix piskvorky#1807 (piskvorky#1822) Fix docstrings for `gensim.models.translation_matrix` (piskvorky#1806) Fix docstrings for `gensim.models.rpmodel` (piskvorky#1802) Fix docstrings for `gensim.utils` (piskvorky#1797) Fix tox.ini/setup.cfg configuration (piskvorky#1815) Add wordnet mammal train file for Poincare notebook (piskvorky#1781)
2 parents 18a18f3 + 525f3c3 commit 159f095

34 files changed

Lines changed: 10751 additions & 1114 deletions

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:2.7
6+
7+
working_directory: ~/gensim
8+
9+
steps:
10+
- checkout
11+
12+
- restore_cache:
13+
key: pip-cache
14+
15+
- run:
16+
name: Apt install (for latex render)
17+
command: |
18+
sudo apt-get -yq update
19+
sudo apt-get -yq remove texlive-binaries --purge
20+
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
21+
22+
- run:
23+
name: Basic installation (tox)
24+
command: |
25+
python -m virtualenv venv
26+
source venv/bin/activate
27+
pip install tox
28+
29+
- run:
30+
name: Build documentation
31+
command: |
32+
source venv/bin/activate
33+
tox -e docs -vv
34+
35+
- store_artifacts:
36+
path: docs/src/_build
37+
destination: documentation
38+
39+
- save_cache:
40+
key: pip-cache
41+
paths:
42+
- "~/.cache/pip"
43+
- "~/.ccache"
44+
- "~/.pip-cache"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ data
7272
*_out.txt
7373
*.html
7474
*.inv
75-
*.js
75+
*.js
76+
docs/_images/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ language: python
1313
matrix:
1414
include:
1515
- python: '2.7'
16-
env: TOXENV="flake8, docs"
16+
env: TOXENV="flake8"
1717

1818
- python: '2.7'
1919
env: TOXENV="py27-linux"

docs/notebooks/Poincare Evaluation.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@
289289
"outputs": [],
290290
"source": [
291291
"# Prepare the WordNet data\n",
292+
"# Can also be downloaded directly from -\n",
293+
"# https://github.com/jayantj/gensim/raw/wordnet_data/docs/notebooks/poincare/data/wordnet_noun_hypernyms.tsv\n",
294+
"\n",
292295
"wordnet_file = os.path.join(data_directory, 'wordnet_noun_hypernyms.tsv')\n",
293296
"if not os.path.exists(wordnet_file):\n",
294297
" ! python {parent_directory}/{cpp_repo_name}/scripts/create_wordnet_noun_hierarchy.py {wordnet_file}"

0 commit comments

Comments
 (0)