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.7.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32da62f9c3a71928961432fa6f8e04cb99d83af05c90ea34d0269fde30b2fbc1 |
|
MD5 | 6dfd5df5803a3981d1f8f0401d9ad5f2 |
|
BLAKE2b-256 | 123aa2566eea4260d9daab123773f4eae258e961f950f86d114d1c2842275fb0 |