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.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50075405a4d6831452ef9149a6d626858b87945682f78ee3981fbd53bc757683 |
|
MD5 | f76c4f26c314a880c5190c9d5927f21a |
|
BLAKE2b-256 | 1d6fdef509244dc2ef8c287ffd00fbc5379247893dd9f87f1a7e4f1f1a76c480 |