Natural Language API - Sentiment (GCP)
GN-Sentiment (Natural language API - Sentiment) is a Python library for analyzing sentiments with GCP.
Installation
Use the package manager pip to install gnsentiment.
pip install gnsentiment
or
pip install -i https://test.pypi.org/simple/ gnsentiment
Usage
from gnsentiment import Gnsentiment
s = Gnsentiment('path_key.json')
s.analyze_sentiment('ejemplo texto')
# return: dict(...)
s.sentiment(1)
# return: 1