Skip to main content

Splade4Elastic

A simple query expansion wrapper for elastic search, that uses keyword custom weights derived from an HuggingFace masked-language-model transformer.

Example usage

from splade4elastic import SpladeRewriter
model_name = "roberta-base"
splader = SpladeRewriter(model_name)
test_texts = [
    "My name is John",
    "The quick brown fox jumps over the lazy dog",
    "I like to eat apples",
]
for test_text in test_texts:
    print(test_text)
    print(splader.query_expand(test_text))

Metadata

Release files for splade4elastic 0.0.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for splade4elastic 0.0.23
File Size Uploaded Provenance Actions
splade4elastic-0.0.23.tar.gz 3.5 kB Without provenance Details for splade4elastic-0.0.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for splade4elastic 0.0.23
File Interpreter ABI Platform Actions
splade4elastic-0.0.23-py3-none-any.whl Python 3 none any Details for splade4elastic-0.0.23-py3-none-any.whl

Total release size: 7.2 kB

Release files / splade4elastic-0.0.23.tar.gz

Download URL splade4elastic-0.0.23.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8d88764ff305833ce57c52d0beb2ad3308b8bc6e8fb3d8e9e89e6a653155477e
BLAKE2b-256 checksum
How to use checksums
8be6c758b971325db5cfe859ba85bef46c886b371832717500c8376ffe4bbbca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / splade4elastic-0.0.23-py3-none-any.whl

Download URL splade4elastic-0.0.23-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8011e898a88b3fd16970acd6b23af281d28b54ac818e1147ac01b4b84caa968
BLAKE2b-256 checksum
How to use checksums
c3e63671fab1cc11a2ebbce0f7e228e7c13d8953d8b53ee21ba24a425c8d93b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for splade4elastic 0.0.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page