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
analyzer = ToneAnalyzer("orca-mini-3b.ggmlv3.q4_0.bin", "Wow it is great!")
result = analyzer.run()
print(result)
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
License
MIT License