From 7e5143c6c1a606672e006148595abe1952586cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=BCnner=2C=20Benedikt?= <bruenner@tugraz.at> Date: Wed, 5 Jun 2024 10:34:33 +0200 Subject: [PATCH] Local Example --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 2f564f2..ebcdddb 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,16 @@ There is currently a bug in the Gensim module. To fix it, an older version of sc pip install scipy==1.12 pip install gensim ``` + +## Run Examples Locally + +`python3` + +``` +import gensim.downloader as api +dataset = api.load('glove-wiki-gigaword-300') + +dataset.most_similar_cosmul(positive=["warm", "winter"], negative=["summer"]) + +dataset.most_similar_cosmul(positive=["boat", "road"], negative=["sea"]) +``` \ No newline at end of file -- GitLab