From 95a3c009f08c8a082ec30f66df0b281bdaf498de Mon Sep 17 00:00:00 2001 From: "kongvc@gmail.com" Date: Wed, 14 Jun 2017 10:30:38 +0000 Subject: [PATCH] Relative path in notebooks More relative paths in notebooks, related to #1407 --- docs/notebooks/Similarity_Queries.ipynb | 4 ++-- gensim Quick Start.ipynb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/notebooks/Similarity_Queries.ipynb b/docs/notebooks/Similarity_Queries.ipynb index 34a367e8ee..3bdb84f910 100644 --- a/docs/notebooks/Similarity_Queries.ipynb +++ b/docs/notebooks/Similarity_Queries.ipynb @@ -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):" ] @@ -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)" ] }, diff --git a/gensim Quick Start.ipynb b/gensim Quick Start.ipynb index c1347d12bf..a1fad3a7a3 100644 --- a/gensim Quick Start.ipynb +++ b/gensim Quick Start.ipynb @@ -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)" ] } ],