def syntax_file(gcs_uri):
 language_client = language.Client()
 document = language_client.document_from_url(gcs_uri)
 tokens = document.analyze_syntax()
 for token in tokens:
  print '{}: {}'.format(token.part_of_speech, token.text_content)

def syntax_file ( gcs_uri ) : language_client = language . Client ( ) document = language_client . document_from_url ( gcs_uri ) tokens = document . analyze_syntax ( ) for token in tokens : print '{}: {}' . format ( token . part_of_speech , token . text_content )
detects syntax in the file located in google cloud storage .