Skip to main content

A simple information retrieval system for pdf documents

Project description

irspdf

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

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.3.4.tar.gz (4.4 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.3.4-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: irspdf-0.3.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for irspdf-0.3.4.tar.gz
Algorithm Hash digest
SHA256 9af004bcc689ac578be7dc6a3debb001120cf6f91bc5c7f58d2b89cc17da1b92
MD5 4f416e88711e57a05a7820718f040017
BLAKE2b-256 2c107039101cb222aea6e615159b0a14edf97222bc19e2c2eee711a7a235d1bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: irspdf-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for irspdf-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7392ff47f975ec8c4f2549befa83d03e4e6711888e5c1d1458f87b827b118caf
MD5 a8de39cc7b7f03380b47f96d10ef0cc3
BLAKE2b-256 ba0f010e21cea4fb95dec387cc7625e03f06feeb0a61ef20cffb02ac583d0d3f

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