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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for Fictometer-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e0d4b324c1e1604818563cc85e0da5874ca12097b6f602c877abf4a8783fe1 |
|
MD5 | a8f293021b06e56ccd5b5561ea1a157d |
|
BLAKE2b-256 | f7e21c6dae419fdb26c4e6487b87ab165c4e7e2ca6b3d46e5bdeec804a01a5b8 |