Skip to main content

No project description provided

Project description

BMP

Install

From PyPi:

pip install bmp

From Source:

pip install maturin
maturin build -r
pip install target/wheels/*.whl

Usage

Index from CIFF

from bmp import ciff2bmp
ciff2bmp(ciff_file="/path/to/ciff", output="/path/to/index", bsize=32, compress_range=False)

Index with Python

from bmp import Indexer
indexer = Indexer('/path/to/index', bsize=32, compress_range=False)
indexer.add_document('doc1', {'a': 1, 'b': 5, 'c': 8}) # docid, vector
indexer.add_document('doc2', {'a': 2, 'c': 1, 'd': 8, 'f': 2})
...
indexer.finish()

Search

from bmp import search, Searcher

# batch operation
results = search(index="/path/to/index", queries="/path/to/queries", k=10, alpha=1.0, beta=1.0)
# -> str (TREC run file)

# query-by-query operation
searcher = Searcher("/path/to/index") # loads index into memory once
searcher.search({'tok1': 5.3, 'tok2': 1.1}, k=10, alpha=1.0, beta=1.0)
# -> Tuple[List[str], List[float]] (doc IDs, scores) for this query

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

bmp-0.2.tar.gz (992.0 kB view details)

Uploaded Source

Built Distributions

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

bmp-0.2-cp312-none-win_amd64.whl (624.5 kB view details)

Uploaded CPython 3.12Windows x86-64

bmp-0.2-cp312-cp312-macosx_10_7_x86_64.whl (761.3 kB view details)

Uploaded CPython 3.12macOS 10.7+ x86-64

bmp-0.2-cp311-none-win_amd64.whl (623.3 kB view details)

Uploaded CPython 3.11Windows x86-64

bmp-0.2-cp311-cp311-macosx_10_7_x86_64.whl (761.7 kB view details)

Uploaded CPython 3.11macOS 10.7+ x86-64

bmp-0.2-cp310-none-win_amd64.whl (624.8 kB view details)

Uploaded CPython 3.10Windows x86-64

bmp-0.2-cp310-cp310-macosx_10_7_x86_64.whl (762.6 kB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

bmp-0.2-cp39-none-win_amd64.whl (625.3 kB view details)

Uploaded CPython 3.9Windows x86-64

bmp-0.2-cp39-cp39-macosx_10_7_x86_64.whl (763.7 kB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

bmp-0.2-cp38-none-win_amd64.whl (624.8 kB view details)

Uploaded CPython 3.8Windows x86-64

bmp-0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (884.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

bmp-0.2-cp38-cp38-macosx_10_7_x86_64.whl (764.3 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

bmp-0.2-cp37-none-win_amd64.whl (624.7 kB view details)

Uploaded CPython 3.7Windows x86-64

File details

Details for the file bmp-0.2.tar.gz.

File metadata

  • Download URL: bmp-0.2.tar.gz
  • Upload date:
  • Size: 992.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2.tar.gz
Algorithm Hash digest
SHA256 976f996ef9cac1cf1d61d13b8ec9d530ee87e45c4118a8e383e13d75e41a3269
MD5 04203e14325a2d40430d3943841f01c4
BLAKE2b-256 3e18dc324e306f830203b95d7027a80d62f07fc9296e8a615d3f8522e8b58745

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp312-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 624.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 6ffeb87343f15ea855fe95d17cb7ec404d1cc3d748104c96d0a7e34f3925ec17
MD5 faba1633cad040a921b3f9849ce0f939
BLAKE2b-256 464f3883b3655060db674edf8f2aaa1badf80073970daf7023d62847c5b8db45

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp312-cp312-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for bmp-0.2-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ebb11657782d4d18eea98387a74f525a7fef4240d4b173e95ea53b91b01ab3f8
MD5 3d09ff4dd993c86dd26048a662235550
BLAKE2b-256 dbd523835cbb94e3badd5eee410ac4cfb0d53b7154a97802044f007cba4ccb9a

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp311-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 623.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 1fbfaf0f2fe0120d6b85ba7d5539f42fcf90de959adaad0d1321c530beed068c
MD5 367dd77484fe852be0a05a6e7450cb90
BLAKE2b-256 e93089d873b598d658cf7b5d28f22af89c3fd9253ffd33b3878e52bec6736e07

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp311-cp311-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for bmp-0.2-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d48ac3cc738db97512b880a7c5e5f760e1facbec07da5570d80d47fce3b0d2b8
MD5 dbebb100f7a24bd2f6fc7d8e2064086b
BLAKE2b-256 584290e0d2dece6502110b6aaa5cc3008b30f3ae83b2a142b5a6e092b8e4521e

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp310-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 624.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 50059ccd93cb88204a949ac770cf6abc55a6c503cd272f1ff9795730f1d25cbc
MD5 feb132605bfc3b849865cf61b02ecc3a
BLAKE2b-256 3209363b7efe3e60584a6372ccf2dc6c5be88e70c76eccbdbecfc95b75f96d63

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for bmp-0.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 339f16e771e2de462acee4df882775bcaf21ba0761258a9842d6121498961978
MD5 60bcb69f8c0494c9da94345b2adf49e6
BLAKE2b-256 3cde6c8a8321c6c058b741b98e289178f8fe5107c87dfdabdfe640c6cd917e22

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp39-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 625.3 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 df5879e7a53600387c446667f1e216da1f81f9606b5232d801226705f71b584a
MD5 cae751388889d31d08e8c2fb8eae5b81
BLAKE2b-256 8f24dc89e220f995ee7eba00d391ea2ee13dec6c7c8f82fe15299290c22cbc9d

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: bmp-0.2-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 763.7 kB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 328fb132aa653619a7716a28dd956b78cbaa056d8ce1e5634d0fbdb62ada9d52
MD5 85dedc1bd1c3711c6f4373e3a72596f2
BLAKE2b-256 0457e4d6c2c3d856b7d759fe7776282f4ff96993ea5c87faf6ee6da3b514794c

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp38-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 624.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 48de53a929c7931872e28e93be953874e7d2e023e2bf1bda241d46cf936a0043
MD5 aecba77c3f4992cdc83567b781a2d1c9
BLAKE2b-256 bd0adc89450178d83db49342502c6cff83dc80bf285fbe996a71bf26fbef1dd9

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bmp-0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eac231b66df38a59e39cdd8fe915bbbec377841ea15174bb42e01d2bff2bd193
MD5 bade71dd180aaf7c9583d8935b22b56b
BLAKE2b-256 2bdeff36c2646ca447898f0c8d8ee1b03d59a1ee9a8014a32388ac493d3a231d

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: bmp-0.2-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 764.3 kB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 45de85b2fc1d27c176e40603d76d0ebc46c4881267f71eadde8901db7473b007
MD5 4d30ae09e327a1001b1a6b49bae7dea6
BLAKE2b-256 f501836df75945535e431797f26e4b9d88bed28a5390b4deb0104266f80e5920

See more details on using hashes here.

File details

Details for the file bmp-0.2-cp37-none-win_amd64.whl.

File metadata

  • Download URL: bmp-0.2-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 624.7 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for bmp-0.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 5df2c535e428a1cd72550f1ecc75cc053b9e07b7dfe9aeac9487d579c82d42b4
MD5 66b1e2963d92734654d77125c49f3db8
BLAKE2b-256 86151c7ca644de172b2caca7590d3dcd658062aa6705dfe08e49b68012931f4d

See more details on using hashes here.

Supported by

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