Socket
Socket
Sign inDemoInstall

blanksort

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blanksort

The Python package for the BlankSort keyword extraction algorithm.


Maintainers
1

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 nameDescription
blanksort.databaseA database file created using SQLiteDict. The database contains word vectors and n-grams imported from FastText.
stopwords-en.txtA 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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc