From 800a8faff4b126bbf92d396bb7db1a0bd56a0a8e Mon Sep 17 00:00:00 2001 From: Savva Kolbachev Date: Mon, 12 Jun 2017 23:27:00 +0300 Subject: [PATCH] Changed the capital of Lithuania to Vilnius Hi, There is a typo about the capital of Lithuania. Vilnius is the capital of Lithuania https://en.wikipedia.org/wiki/Vilnius Ljubljana is the capital of Slovenia https://en.wikipedia.org/wiki/Ljubljana --- website/docs/usage/word-vectors-similarities.jade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/usage/word-vectors-similarities.jade b/website/docs/usage/word-vectors-similarities.jade index 63ed01776..937fbfbd0 100644 --- a/website/docs/usage/word-vectors-similarities.jade +++ b/website/docs/usage/word-vectors-similarities.jade @@ -77,7 +77,7 @@ p +code. doc1 = nlp(u"Paris is the largest city in France.") - doc2 = nlp(u"Ljubljana is the capital of Lithuania.") + doc2 = nlp(u"Vilnius is the capital of Lithuania.") doc3 = nlp(u"An emu is a large bird.") for doc in [doc1, doc2, doc3]: @@ -85,13 +85,13 @@ p print(doc.similarity(other_doc)) p - | Even though the sentences about Paris and Ljubljana consist of different + | Even though the sentences about Paris and Vilnius consist of different | words and entities, they both describe the same concept and are seen as | more similar than the sentence about emus. In this case, even a misspelled - | version of "Ljubljana" would still produce very similar results. + | version of "Vilnius" would still produce very similar results. +table - - var examples = {"Paris is the largest city in France.": [1, 0.84, 0.65], "Ljubljana is the capital of Lithuania.": [0.84, 1, 0.52], "An emu is a large bird.": [0.65, 0.52, 1]} + - var examples = {"Paris is the largest city in France.": [1, 0.85, 0.65], "Vilnius is the capital of Lithuania.": [0.85, 1, 0.55], "An emu is a large bird.": [0.65, 0.55, 1]} - var counter = 0 +row