Classifies text as 'Fiction' or 'Non-Fiction'.
Project description
Fictometer
Description
Fictometer is an algorithm for analysing whether the given text is Fiction
or Non-Fiction
.
It first calculates the number of adverbs
, adjectives
and pronouns
in the text.
It then calculates Ratio of Adjective to Pronoun RADJPRON
and Ratio of Adverb to Adjective RADVADJ
,
from which it predicts whether text is Fiction
or Non-Fiction
.
Blog Link: 🔗LINK
Installation
pip install Fictometer
Usage
import Fictometer
text = "your_text"
pc = Fictometer.ficto.pos_count(text)
pr = Fictometer.ficto.pos_ratio(pc)
result = Fictometer.ficto.fictometer(pr)
Fictometer.ficto.help()
Contact
email - atmabodha@gmail.com
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
fictometer-0.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for Fictometer-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c9b5ccf4f9bba535e2d51992e1567b8e6b9b9eafdb1397ffaa1c446fa6bbac |
|
MD5 | e29eee2c8f1594b3859f297145ac64a6 |
|
BLAKE2b-256 | b5b823a3d4e8c13c01dd89bd8604f51c3879e8300e91c4d805ae108e9d1ab541 |