def get_sentiment_entities(service, document):
 (sentiments, entities) = analyze_document(service, document)
 score = sentiments.get('score')
 return (score, entities)

def get_sentiment_entities ( service , document ) : ( sentiments , entities ) = analyze_document ( service , document ) score = sentiments . get ( 'score' ) return ( score , entities )
compute the overall sentiment volume in the document .