Skip to content

Commit

Permalink
Merge pull request #1414 from vochicong/notebooks-relative-path
Browse files Browse the repository at this point in the history
Relative path in notebooks
  • Loading branch information
menshikh-iv authored Jun 14, 2017
2 parents 1862953 + 95a3c00 commit d7f4c2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/Similarity_Queries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"In the previous tutorials on [Corpora and Vector Space](https://radimrehurek.com/gensim/tut1.html) and [Topics and Transformations](https://radimrehurek.com/gensim/tut2.html), we covered what it means to create a corpus in the Vector Space Model and how to transform it between different vector spaces. A common reason for such a charade is that we want to determine **similarity between pairs of documents**, or the **similarity between a specific document** and a set of other documents (such as a user query vs. indexed documents).\n",
"In the previous tutorials on [Corpora and Vector Space](Corpora_and_Vector_Spaces.ipynb) and [Topics and Transformations](Topics_and_Transformations.ipynb), we covered what it means to create a corpus in the Vector Space Model and how to transform it between different vector spaces. A common reason for such a charade is that we want to determine **similarity between pairs of documents**, or the **similarity between a specific document** and a set of other documents (such as a user query vs. indexed documents).\n",
"\n",
"To show how this can be done in gensim, let us consider the same corpus as in the previous examples (which really originally comes from Deerwester et al.’s [“Indexing by Latent Semantic Analysis”](http://www.cs.bham.ac.uk/~pxt/IDA/lsa_ind.pdf) seminal 1990 article):"
]
Expand Down Expand Up @@ -94,7 +94,7 @@
"from gensim import corpora, models, similarities\n",
"\n",
"dictionary = corpora.Dictionary.load(os.path.join(TEMP_FOLDER, 'deerwester.dict'))\n",
"corpus = corpora.MmCorpus(os.path.join(TEMP_FOLDER, 'deerwester.mm')) # comes from the first tutorial, \"From strings to vectors\"\n",
"corpus = corpora.MmCorpus(os.path.join(TEMP_FOLDER, 'deerwester.mm')) # comes from the first tutorial, \"Corpora and Vector Space\"\n",
"print(corpus)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions gensim Quick Start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@
"\n",
"Interested in learning more about `gensim`? Please read through the following notebooks.\n",
"\n",
"1. [Corpora_and_Vector_Spaces.ipynb](https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/Corpora_and_Vector_Spaces.ipynb)\n",
"2. [word2vec.ipynb](https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/word2vec.ipynb)"
"1. [Corpora_and_Vector_Spaces.ipynb](docs/notebooks/Corpora_and_Vector_Spaces.ipynb)\n",
"2. [word2vec.ipynb](docs/notebooks/word2vec.ipynb)"
]
}
],
Expand Down

0 comments on commit d7f4c2c

Please sign in to comment.