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.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for byte_search-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b58526bb04622e6803f9880c10dbf96b35e55f18f1db2b3c342c03212aa1e0 |
|
MD5 | a10a060574212d0f241185aa3e7660bf |
|
BLAKE2b-256 | a84b0ed6981bde282a5cecbd2e4fd107ec29a866ac44ee4794650805183164de |