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.1.5.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for Fictometer-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed58a0f7fa51382e734018b4f543efd39af7b1c9c2c25007c6c33c470ab1d6e0 |
|
MD5 | 963df25fd2d3242eff07c9a9681dbc8b |
|
BLAKE2b-256 | d7a07cd898e5c86a9dc71a37c5f6a1a75d755679f3dfa2199a1687950660cbb0 |