Skip to content

Instantly share code, notes, and snippets.

View TudorGruian's full-sized avatar

Tudor Gruian TudorGruian

View GitHub Profile
from google.cloud import language_v1
from google.cloud.language_v1 import enums
import six
def sample_analyze_sentiment(content):
client = language_v1.LanguageServiceClient()
# content = 'Your text to analyze, e.g. Hello, world!'