Comments (1)
Hi,
You should have all the files from the archive in one directory, not only model.model
and model.model.vectors.npy
.
If this is done, gensim.models.KeyedVectors.load()
works just fine with this model:
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import gensim
In [2]: model = gensim.models.KeyedVectors.load("model.model")
In [3]: word = "кракозябра"
In [4]: model.most_similar(word)
Out[4]:
[('краков', 0.6272931694984436),
('припорашивать', 0.5428630709648132),
('крак', 0.5345099568367004),
('краковский', 0.529658317565918),
('распуститься', 0.528093159198761),
('припорошать', 0.515566885471344),
('вроцлав', 0.5138404965400696),
('капустный', 0.5137609839439392),
('павлиний', 0.512362539768219),
('ягель', 0.5122756958007812)]
In [5]: model.most_similar("волк")
Out[5]:
[('медведь', 0.7839906215667725),
('зверь', 0.7489554286003113),
('лисица', 0.7402448654174805),
('волчица', 0.7251183390617371),
('заяц', 0.7193619012832642),
('лис', 0.7154371738433838),
('волчонок', 0.7136003971099854),
('олень', 0.7099077105522156),
('шакал', 0.7061660885810852),
('лось', 0.7053733468055725)]
from webvectors.
Related Issues (20)
- Add PCA visualizations
- Font color for hovered menu items HOT 1
- Templates do not respect tag configuration HOT 2
- win textfile encoding HOT 2
- Не находит похожие слова HOT 4
- модели cbow_fasttext не загружаются через указанную в туториале функцию HOT 2
- Tunable number of neighbors to retrieve
- Data preprocessing HOT 1
- Inline comments in templates are repeating HOT 1
- Question about udpipe tokenization HOT 1
- Drop Python 2 support HOT 1
- Upper-casing of proper names in visualizations HOT 1
- How run project with model? HOT 28
- Necessary update this mapping HOT 1
- Clear the input field on click for all pages HOT 3
- word2vec_server.py not starting on tagger port HOT 2
- Неточность в комменте файле webvectors/preprocessing/rus_preprocessing_udpipe.py HOT 1
- Redirection to "Similar Words" After Clicking on the Words HOT 1
- Tensorflow projector issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webvectors.