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.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for Fictometer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4605ab2b0047c05f3c381da38368728f446000029811b87dcea064211173123a |
|
MD5 | 2037433ef3d26442062b0272f94e5480 |
|
BLAKE2b-256 | 9f23019cc2a44804225c3ef98ca6bffcf47e0c42f10e132cd8863d9810b64907 |