Skip to main content

The Python package for the BlankSort keyword extraction algorithm.

Project description

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.

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

blanksort-0.0.7.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

blanksort-0.0.7-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file blanksort-0.0.7.tar.gz.

File metadata

  • Download URL: blanksort-0.0.7.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for blanksort-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7a540097c9233ab9b44f576de9222dd6ca58f9f7c10bb97c251c1b0e7ecbe7b1
MD5 08d1f0cb1645eb7cc0773c53d29aa510
BLAKE2b-256 ae46155d60efef3f0c6a80bf073d11a3c0b4d7c8a797e7ab4a4ccd93621371e0

See more details on using hashes here.

File details

Details for the file blanksort-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: blanksort-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for blanksort-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 48df7f2bfcf0e8892da3c94e5b9b18cdb54ae5b8948f4d8af005d05569c738e8
MD5 2eb5136b2781ab4a3605c205de48ce8e
BLAKE2b-256 d0150faf44b69ae010c0fac00e12d40905863d931d33cb9b7fdc3252aa5f4f60

See more details on using hashes here.

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