@@ -50,7 +50,6 @@ def sample_analyze_syntax(text_content):
5050 language = "en"
5151 document = {"content" : text_content , "type" : type_ , "language" : language }
5252
53- # [START language_python_migration_syntax_text]
5453 # Available values: NONE, UTF8, UTF16, UTF32
5554 encoding_type = enums .EncodingType .UTF8
5655
@@ -64,7 +63,7 @@ def sample_analyze_syntax(text_content):
6463 u"Location of this token in overall document: {}" .format (text .begin_offset )
6564 )
6665 # Get the part of speech information for this token.
67- # Parts of speech are as defined in:
66+ # Parts of spech are as defined in:
6867 # http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf
6968 part_of_speech = token .part_of_speech
7069 # Get the tag, e.g. NOUN, ADJ for Adjective, et al.
@@ -73,8 +72,6 @@ def sample_analyze_syntax(text_content):
7372 enums .PartOfSpeech .Tag (part_of_speech .tag ).name
7473 )
7574 )
76- # [END language_python_migration_syntax_text]
77-
7875 # Get the voice, e.g. ACTIVE or PASSIVE
7976 print (u"Voice: {}" .format (enums .PartOfSpeech .Voice (part_of_speech .voice ).name ))
8077 # Get the tense, e.g. PAST, FUTURE, PRESENT, et al.
0 commit comments