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.6.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9457edf9358c1b7ec7c27f5b845093ee251666c6481b683acbb8bdad6315ecbf |
|
MD5 | 00cacf9899b97ef9efd161f9bd2a4ddd |
|
BLAKE2b-256 | 4854c5a0455279bbb8a92af46ae545c578dc3966da5ef8c94325b101f90919a9 |