Skip to main content

Lightweight Python wrapper for the NCBI LitSense2 API

Project description

LitSense-Wrapper

Python wrapper for the NCBI LitSense2 API. LitSense2 (an update of LitSense) is a NCBI/NLM system for sentence- and paragraph-level semantic search across PubMed abstracts and the PMC Open Access subset, returning the most relevant sentences or passages for a query. It is useful for rapid evidence attribution, biocuration, and comparing new findings with existing literature. Learn more on the NCBI LitSense2 page.

Installation

pip install litsense-wrapper

Usage

from litsense_wrapper import LitSense_API

engine = LitSense_API()
results = engine.retrieve(query_str='COVID-19 mechanism', limit=2)

for result in results:
    print(result.text)

Notes

  • Modes supported: passages (default) and sentences.
  • Optional min_score to filters results based on similarity scores

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

litsense_wrapper-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

litsense_wrapper-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file litsense_wrapper-0.1.1.tar.gz.

File metadata

  • Download URL: litsense_wrapper-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for litsense_wrapper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7c609bb58e3ac2223354d3bdc7f82d255cb143fe7bf62a1fe7d8482a2f4deb49
MD5 f08fa3b9286d16cd6940594eb0b1e297
BLAKE2b-256 54e937aa24b4baecf2a062b467ebfd965a8b46f1139b8a24aaa22139bf9ba800

See more details on using hashes here.

File details

Details for the file litsense_wrapper-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for litsense_wrapper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a17421ef9e42d6c17f69d403e3249438bfe673bd58ec116fae44b15ec934170
MD5 9e70cdf3663dd3b74b66a4ec1c7ac92c
BLAKE2b-256 932c842e3aa0ceb9835c3425446bb7470f7e6d3819386f652065cf0f325f0fa7

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