Phrase
A library that builds on nltk and gensim to automatically generate phrases.
Installation
Add the package to your python path using pip:
`bash pip install phrase `
Usage
To create a phrase dictionary and print out the top 25 phrases:
`bash create_phrase_dictionary <corpus_folder> <phrase_dictionary_output_filename> `
This is not a light process, it can take a lot of memory and time, so be warned.
Tests
To run all the tests, you need to run py.test to pick up the unit tests. Lettuce is currently being used for BDD tests and needs to be run from the tests folder or with tests/ added to the PYTHONPATH (the tests utilize the units.helpers modules) `bash py.test PYTHONPATH=tests lettuce tests/features cd tests lettuce features/ `
Metadata
Release files for phrase 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| phrase-0.0.10.macosx-10.5-x86_64.tar.gz | 14.5 kB | Without provenance | Details |
Release files / phrase-0.0.10.macosx-10.5-x86_64.tar.gz
| Download URL | phrase-0.0.10.macosx-10.5-x86_64.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd2900e3ce1aabf1d409782831f4c6cf55a41f1da65a95f8e599a558584c28ae
|
|
BLAKE2b-256 checksum How to use checksums |
051c78546e8fc1c3c6e6eeb77a2d6779f2e9a3afbe92804fb16b6ce5059ba5d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for phrase 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.