Skip to main content

A simple information retrieval system for pdf documents

Project description

README

Presentation

irspdf is a simple textual information retrieval system for pdf documents.

Text is extracted from pdf with pdfplumber.

Standard text preprocessing for information retrieval is applied:

  • StopWord removal
  • Stemming
  • Punctuation removal
  • Lowercase conversion

The ranking function used is BM25.

Installation

Install with pip

pip install irspdf

OR install from github

git clone https://github.com/Jibril-Frej/irspdf.git
cd irspdf && python setup.py install

Usage

Build a collection

from irspdf import build
build(folder_path, collection_path)

folder_path : path of the folder that contains all the pdf files to include to the collection.

collection_path : file where the collection will be saved

Query the collection

from irspdf import query
query(collection_path)

collection_path : file where the collection is saved

Update the collection

from irspdf import update
update(folder_path, collection_path)

folder_path : path of the folder that contains all the pdf files to add to the collection.

collection_path : file where the original collection is saved

Useful links

Documentation: https://irspdf.readthedocs.io/en/latest/.

Source Code: https://github.com/Jibril-Frej/irspdf

Package: https://pypi.org/project/irspdf/

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

irspdf-0.4.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

irspdf-0.4.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file irspdf-0.4.1.tar.gz.

File metadata

  • Download URL: irspdf-0.4.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for irspdf-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ce4d1a5e69667472b92ae114d32c0ad9c7532bb31c9970344ae890c23dfa2546
MD5 28c53593bd42545f57dd9d0c3fb4a447
BLAKE2b-256 18dd5bfba04a0c58535eeea6060904bbde40c9fccfe68e8447f9eaf416dd428b

See more details on using hashes here.

File details

Details for the file irspdf-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: irspdf-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for irspdf-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dd0f1788bd2b96c00bad93314b5fbd785ad5ec5c9358636385cffe919dd76bb
MD5 9645c63d23a3a75272a513f18df2c464
BLAKE2b-256 223db0e67766be06d6f37895993e562fd25f78d9914fb05b2845392d28b0a5dc

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