Skip to main content

Converter from urls,pdfs,wikipages to clean text document one sentence per line.

Project description

sentify is a simple and fast open source Python toolkit that aggregates in one step the tedious task of fetching, converting to text and segmenting documents into one sentence per line clean text files

I put it together thinking that it is an often unavoidable "stepping stone" for getting quickly to the really interesting NLP and AI tasks we care about these days.

The collected clean sentences are ready for NLP and ML tasks, including passing them to Generative AI for summarization, relation extraction and QA.

It handles local and remote txt and pdf files and urls as well as Wikipedia pages given by their title.

See code at

https://github.com/ptarau/sentify/blob/main/sentify/main.py

for the simple, all in one API.

Get it from github or fetch it from pypi with

pip3 install sentify

See tests/tests.py for testing out the API on several use cases.

Enjoy,

Paul Tarau

January, 2024

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

sentify-0.8.2.tar.gz (6.9 kB view hashes)

Uploaded Source

Supported by

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