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.8.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee9c44b62eca579e60a2497da52bd2f8009063a6c74b2f604d0b636ab23c537d |
|
MD5 | 9edac88eb281e1f6f3cd074f50de555a |
|
BLAKE2b-256 | f282be600911664c28b0560ab638f466865cae04627c70efb868fe3b9112e4ad |