def get_request_body(text, syntax=True, entities=True, sentiment=True):
 body = {'document': {'type': 'PLAIN_TEXT', 'content': text}, 'features': {'extract_syntax': syntax, 'extract_entities': entities, 'extract_document_sentiment': sentiment}, 'encoding_type': 'UTF32'}
 return body

def get_request_body ( text , syntax = True , entities = True , sentiment = True ) : body = { 'document' : { 'type' : 'PLAIN_TEXT' , 'content' : text } , 'features' : { 'extract_syntax' : syntax , 'extract_entities' : entities , 'extract_document_sentiment' : sentiment } , 'encoding_type' : 'UTF32' } return body
creates the body of the request to the language api in order to get an appropriate api response .