Metadata-Version: 2.4
Name: litsense-wrapper
Version: 0.1.1
Summary: Lightweight Python wrapper for the NCBI LitSense2 API
Author: Dinh Long Huynh
License-Expression: MIT
Project-URL: Homepage, https://github.com/DinhLongHuynh/LitSense_Wrapper
Project-URL: Repository, https://github.com/DinhLongHuynh/LitSense_Wrapper
Project-URL: Documentation, https://www.ncbi.nlm.nih.gov/research/litsense2/
Project-URL: Issues, https://github.com/DinhLongHuynh/LitSense_Wrapper/issues
Keywords: litsense,ncbi,biomedical,nlp,api
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Dynamic: license-file

### 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](https://www.ncbi.nlm.nih.gov/research/litsense2/).

#### Installation

```bash
pip install litsense-wrapper
```

#### Usage

```python
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

