File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- google-cloud-language == 0.24.1
1+ google-cloud-language == 0.25.0
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def syntax_text(text):
120120 tokens = document .analyze_syntax ().tokens
121121
122122 for token in tokens :
123- print (u'{}: {}' .format (token .part_of_speech , token .text_content ))
123+ print (u'{}: {}' .format (token .part_of_speech . tag , token .text_content ))
124124
125125
126126def syntax_file (gcs_uri ):
@@ -135,7 +135,7 @@ def syntax_file(gcs_uri):
135135 tokens = document .analyze_syntax ().tokens
136136
137137 for token in tokens :
138- print (u'{}: {}' .format (token .part_of_speech , token .text_content ))
138+ print (u'{}: {}' .format (token .part_of_speech . tag , token .text_content ))
139139
140140
141141if __name__ == '__main__' :
Original file line number Diff line number Diff line change 11gapic-google-cloud-language-v1beta2 == 0.15.3
2- google-cloud-language == 0.24.1
2+ google-cloud-language == 0.25.0
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def syntax_text(text):
124124 tokens = document .analyze_syntax ().tokens
125125
126126 for token in tokens :
127- print (u'{}: {}' .format (token .part_of_speech , token .text_content ))
127+ print (u'{}: {}' .format (token .part_of_speech . tag , token .text_content ))
128128
129129
130130def syntax_file (gcs_uri ):
@@ -139,7 +139,7 @@ def syntax_file(gcs_uri):
139139 tokens = document .analyze_syntax ().tokens
140140
141141 for token in tokens :
142- print (u'{}: {}' .format (token .part_of_speech , token .text_content ))
142+ print (u'{}: {}' .format (token .part_of_speech . tag , token .text_content ))
143143
144144
145145def entity_sentiment_text (text ):
Original file line number Diff line number Diff line change 1- google-cloud-language == 0.24.1
1+ google-cloud-language == 0.25.0
You can’t perform that action at this time.
0 commit comments