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
andstopwords-en.txt
. If not specified, the default binary files will be downloaded.
- The path to the binary folder that contains
- preloadVectors [optional keyword argument]
- A boolean (default
False
) that specifies if word vectors should be pre-loaded into memory.
- A boolean (default
- preloadVectors [optional keyword argument]
- A boolean (default
False
) that specifies if word vectors generated on-the-fly should be saved toblanksort.database
.
- A boolean (default
Example
import blanksort
algo = blanksort.BlankSort()
keywords = algo.rank("[input text]")
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.3.tar.gz
(5.7 kB
view hashes)
Built Distribution
blanksort-0.0.3-py3-none-any.whl
(12.8 kB
view hashes)
Close
Hashes for blanksort-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d867a7571a9cf1fb2f708c72b347fd1f0e97dda34569eaaaaa021d34b1b4ad8d |
|
MD5 | fdd52d9d0b4fb9d4a91eeca9afb877c8 |
|
BLAKE2b-256 | cea1a91072a12ff826b6ced445e3cf827f66c396ef6e4f46ba45b837e9c1d9b9 |