diff --git a/Different Embeddings + Cosine Similarity + HeatMap illustration.ipynb b/Different Embeddings + Cosine Similarity + HeatMap illustration.ipynb index c16f960..f590d1e 100644 --- a/Different Embeddings + Cosine Similarity + HeatMap illustration.ipynb +++ b/Different Embeddings + Cosine Similarity + HeatMap illustration.ipynb @@ -102,7 +102,8 @@ " content = f.readlines()\n", " model = {}\n", " for line in content:\n", - " splitLine = line.split()\n", + " #splitLine = line.split()\n", + " splitLine = line.strip().split(' ')\n", " word = splitLine[0]\n", " embedding = np.array([float(val) for val in splitLine[1:]])\n", " model[word] = embedding\n", @@ -221,7 +222,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.0" + "version": "3.7.7" } }, "nbformat": 4,