A comprehensive tool for sentiment analysis and tone review, empowered by GPT4ALL.
Project description
GPT4ALL-Tone Analyzer
A comprehensive tool for sentiment analysis and tone review, empowered by GPT4ALL.
Installation
Use the following command to install gpt4all-tone
:
pip install gpt4all-tone
or
pip3 install gpt4all-tone
Usage
You can use the ToneAnalyzer
class to perform sentiment analysis on a given text. Here's a basic example of how you might use the ToneAnalyzer
class:
from gpt4all_tone import ToneAnalyzer
# Create an instance of the ToneAnalyzer class
analyzer = ToneAnalyzer("orca-mini-3b.ggmlv3.q4_0.bin", "Wow it is great!")
# Run the analyzer
result = analyzer.run()
# Print the result
print(result) # 1.0
In this example, we're analyzing the text "Wow it is great!" and the result is 1.0
, indicating a positive sentiment.
Command Line Interface
You can also use the gpt4all-tone
command line interface to analyze text:
gpt4all_tone "Wow it is great!"
Contact
- Author: Evgenii Evstafev
- Email: chigwel@gmail.com
License
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
gpt4all-tone-0.23.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for gpt4all_tone-0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12557ea991d209a3490c15c6dbd45c371d9b6606c63c2fc18f187436c4d6c3a6 |
|
MD5 | 807e67e62559847d8d3bdc310605db15 |
|
BLAKE2b-256 | d13a7b210a0c9cf62e0eba8aa0547efd3a9e967c9b5407fae7fa56ae781c686f |