Skip to main content

BlankSort

The Python package for the BlankSort keyword extraction algorithm.

Installation

Use the following command to install from TestPyPI:

pip install --upgrade blanksort

Usage

BlankSort can be imported like any other Python package:

import blanksort

After importing, you can create a BlankSort object.

algo = blanksort.BlankSort()

Alternatively, you can use the following code to create the BlankSort object.

from BlankSort import *
algo = BlankSort()

The BlankSort constructor accepts the following arguments:

  • binary_path [optional]
    • The path to the binary folder that contains blanksort.database and stopwords-en.txt. If not specified, the default binary files will be downloaded.
  • preloadVectors [optional keyword argument]
    • A boolean (default False) that specifies if word vectors should be pre-loaded into memory.
  • saveGeneratedVectors [optional keyword argument]
    • A boolean (default False) that specifies if word vectors generated on-the-fly should be saved to blanksort.database.

Example

import blanksort
algo = blanksort.BlankSort()
keywords = algo.rank("[input text]")

Binary Files

The BlankSort package requires several files, collectively referred to as "binaries".

File name Description
blanksort.database A database file created using SQLiteDict. The database contains word vectors and n-grams imported from FastText.
stopwords-en.txt A text file containing a list of stop words for pre-processing. Each line should contain a single word.

If the files are not found in the binary_path, the package will download the default binary folder from the latest version of binaries.zip attached to a release.

Metadata

Release files for blanksort 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for blanksort 0.0.8
File Size Uploaded
blanksort-0.0.8.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for blanksort 0.0.8
File Interpreter ABI Platform
blanksort-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / blanksort-0.0.8.tar.gz

Download URL blanksort-0.0.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
57ac1cf5881cb91de902e15f819b8c9268f5bfbba22f2e34015eeb9b3d497c52
BLAKE2b-256 checksum
How to use checksums
443f85e9aa372b2f34712fa792eaf23c59c855fa1fbc1bca8836e8db6088c036
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / blanksort-0.0.8-py3-none-any.whl

Download URL blanksort-0.0.8-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56896c47d6125434aae5073c1d7722ee46b17347f9e56f65a5bc241501b82462
BLAKE2b-256 checksum
How to use checksums
ba7aad0e9b61eb28736fd7ae5ac0e09c29384954bbe35b2f10f4ac421c23a613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page