Rdt
RDT: Russian Distributional Thesaurus (Русский Дистрибутивный Тезаурус)
Install / Use
/learn @nlpub/RdtREADME
rdt
RDT: Russian Distributional Thesaurus (Русский Дистрибутивный Тезаурус)
This package let you efficiently use word graph of the Russian Distributional Thesaurus.
Quickstart
- Download the pre-packed resource:
wget http://panchenko.me/data/russe/rdt.pkl
- Install dependencies, e.g.:
pip install -r requirements.txt
- Load the distributional thesaurus (specify path to the downloaded 'rdt.pkl' file):
from dt import RDT, DistributionalThesaurus
rdt = RDT(dt_pkl_fpath="rdt.pkl")
Loading takes about 5 minutes and the resulting structure occupy around 1.3 Gb of RAM. This is however more efficient than parsing the CSV file into a dict in terms of both time and memory consumption. This implementation relies on marisa trie for storing keys and on numpy array for storing similarity scores.
- Search for nearest neighbours:
for w,s in rdt.most_similar(u"граф"):
print w,s
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
