Skip to main content

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)

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.9.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

byte_search-0.5.9-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file byte_search-0.5.9.tar.gz.

File metadata

  • Download URL: byte_search-0.5.9.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for byte_search-0.5.9.tar.gz
Algorithm Hash digest
SHA256 b0aebb24fc659eafd76e691d481e29b898e4c4383ead7bcc57324c834030aa84
MD5 b7529062be5978b8624a16dad98fddeb
BLAKE2b-256 f95e850db2a57b5f7db7254af0e0a4296c4bd16ad421edfd37d6b04ec9342bc7

See more details on using hashes here.

File details

Details for the file byte_search-0.5.9-py3-none-any.whl.

File metadata

  • Download URL: byte_search-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for byte_search-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4ec5ecfcdd70dbae047c310fa9a009b8ad2006151368fc854e08373000b8fca6
MD5 b38482a4755be152cfb2665ebae2e665
BLAKE2b-256 ce2330920d005e5c0d8c1a4aac615c3cf141cd7a1587c772ce9dda125593614e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.9 This release

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

1 file

0.5.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page