Fast lexical search
Project description
byte-search
Installation
pip install byte-search
Usage
from byte_search.index import SearchIndex
docs = [
"Contrastive Fine-tuning Improves Robustness for Neural Rankers",
"Unsupervised Neural Machine Translation for Low-Resource Domains via Meta-Learning",
"Spatial Dependency Parsing for Semi-Structured Document Information Extraction"
]
my_index = SearchIndex(text_list=docs, device='cpu', d_model=64)
my_index.show_topk(query='machine translation', k=1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
byte_search-0.5.9.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ec5ecfcdd70dbae047c310fa9a009b8ad2006151368fc854e08373000b8fca6 |
|
MD5 | b38482a4755be152cfb2665ebae2e665 |
|
BLAKE2b-256 | ce2330920d005e5c0d8c1a4aac615c3cf141cd7a1587c772ce9dda125593614e |