Lowerated is an opensource library that allows you to rate any item in a statistically accurate way
Project description
Lowerated's Rating Algorithm
The Best Way to Rate & Recommend Movies
- An algorithm that provides accurate ratings for any entity.
- Uses diverse sources: reviews, links, documents, and other resources.
- Completely unbiased.
- Combines AI and human evaluation to determine the true rating of an entity.
What is an Entity?
- Anything that can be rated.
- Examples include films, cars, books, music, furniture, even your partner.
- In case of Lowerated, we're dealing with "Movies".
How Does It Work?
- We have predefined research attributes that, when measured, give a comprehensive understanding of the item. Let's use a movie as an example.
Movie Rating Attributes
We evaluate a movie based on seven attributes:
- Cinematography - Visual appeal and camera work.
- Direction - How well the director conveys the story.
- Story - Plot coherence and engagement.
- Characters - Depth and development of characters.
- Production Design - Quality of the sets and overall look.
- Unique Concept - Originality of the idea.
- Emotions - Emotional impact on the audience.
We gather reviews from multiple critics and users. Our AI extracts information from the text inputs and assigns numerical values to each attribute. This process is repeated for all reviews, and we average the results.
Each attribute is given a percentage value from 0-100%, reflecting its presence in the movie.
We have identified key attributes for multiple entities, detailed in the listed in entities & attributes
Can we add more attributes?
Yes, 7 is the standard for all the default entities given, you can create your own entities and assign them as many attributes you want.
How do I use it?
Check Out the steps to use Lowerated here
Prerequisites
Before using the Entity
class, ensure you have the required libraries installed:
lowerated
You can install these libraries using pip:
pip install lowerated
Setup
- Import the necessary modules and classes:
from lowerated.rate import Entity
from lowerated.rate.utils import entities, find_attributes
- Define the
Entity
class with its methods.
Usage
See Available Entities & their Attributes
Get a list of available entities and their attributes:
entities = entities()
print(entities)
To see a specific entity's attributes, use the code below:
entity_name = "Movie"
attributes = find_attributes(entity_name)
print(attributes)
Initializing an Available Entity or Creating Custom Entity
Create an instance of the Entity
class by specifying the entity name and optionally its attributes:
entity_name = "Movie"
attributes = ['Cinematography', 'Direction', 'Story', 'Characters', 'Production Design', 'Unique Concept', 'Emotions']
movie_entity = Entity(entity_name, attributes)
Example 1: Using a List of Reviews
Rate the attributes of an entity using a list of textual reviews:
reviews_list = ["Great movie!", "Not worth the price.", "Excellent cinematography."]
rating = movie_entity.rate(reviews=reviews_list)
print(rating)
Example 2: Using a File Path
Rate the attributes of an entity using a file containing reviews. Supported file formats are CSV, Excel (XLSX), and TXT.
file_path = "reviews.csv" # Can be .csv, .xlsx, or .txt
rating = movie_entity.rate(file_path=file_path)
print(rating)
Example 3: Using a Download Link
Rate the attributes of an entity using a URL to download the file containing reviews:
download_link = "https://example.com/reviews.xlsx" # Can be .csv, .xlsx, or .txt
rating = movie_entity.rate(download_link=download_link)
print(rating)
Lisence
Copyright (2024) FACT-RATED MEDIA (PVT-LTD)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lowerated-0.2.6.tar.gz
.
File metadata
- Download URL: lowerated-0.2.6.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c28ebd9300e6369718965e6525af0c9de4a6c34e5ed22e084a2925b5ca837308 |
|
MD5 | e15145e1fc3bd569dc6ee0ebfcb41afa |
|
BLAKE2b-256 | 614fd7e81e64cfae7d21f997e2ac0dea8cfe53dfc903f4624f1f107d74570e31 |
File details
Details for the file lowerated-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: lowerated-0.2.6-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 445f383ce942a23ba5e542a64a021ac5e0bf999954d72fa95f8d42b534d11c64 |
|
MD5 | b32a7e42efe2966e2f264269eeb452d6 |
|
BLAKE2b-256 | ff655f22bda1ec0bb93f615de3f41f7acdb211a6c9d6d211cb19aa1bc48cf560 |