Skip to main content

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


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)

Uploaded Source

Built Distribution

byte_search-0.5.7-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page