From b70980d6017d8e8d505fde17f8cc9fe595be13bc Mon Sep 17 00:00:00 2001 From: "Anna V. Kozlova" Date: Thu, 28 Dec 2017 14:20:21 +0300 Subject: [PATCH] Tiny fixes. --- week3/week3-Embeddings.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/week3/week3-Embeddings.ipynb b/week3/week3-Embeddings.ipynb index 66f394d8..b6d392c0 100644 --- a/week3/week3-Embeddings.ipynb +++ b/week3/week3-Embeddings.ipynb @@ -823,7 +823,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "**Task 4 (W2VTokenizedRanks).** For each question from *test.tsv* submit the ranks of the candidates to earn the points. It should take about 3-5 minutes. Pay attention that the function *rank_candidates* returns a ranking, while in this case you should find a position in this ranking. Ranks should start with 1." + "**Task 4 (W2VTokenizedRanks).** For each question from tokenized *test.tsv* submit the ranks of the candidates to earn the points. It should take about 3-5 minutes. Pay attention that the function *rank_candidates* returns a ranking, while in this case you should find a position in this ranking. Ranks should start with 1." ] }, { @@ -846,7 +846,8 @@ "outputs": [], "source": [ "w2v_ranks_results = []\n", - "for line in open('test_tokenized.txt'):\n", + "tokenized_test_data = ######### YOUR CODE HERE #############\n", + "for line in open(tokenized_test_data):\n", " q, *ex = line.strip().split('\\t')\n", " ranks = rank_candidates(q, ex, wv_embeddings, 300)\n", " ranked_candidates = [r[0] for r in ranks]\n", @@ -1039,7 +1040,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.4.3" } }, "nbformat": 4,