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.counts(text)
// returs the count of ```adjectives```, ```adverbs``` and ```pronouns```
result = Fictometer.predict(text)
// Uses counts(), then calculates RADJPRON and RADVADJ, and returns a tuple having 'result' and 'confidence'.
Fictometer.help()
// Shows how to use the package
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.2.4.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for Fictometer-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376a36a0cfa61f8bb8cb6ea32df4f41808dee5f166033306f455a233524eef93 |
|
MD5 | 3dbb3fac1d6ba8c0e30224a81ffa71b6 |
|
BLAKE2b-256 | 40357f122913d59c73809a6d4a447859de97081003813855023a408f6f079980 |