File tree 5 files changed +7
-7
lines changed
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):
120
120
tokens = document .analyze_syntax ().tokens
121
121
122
122
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 ))
124
124
125
125
126
126
def syntax_file (gcs_uri ):
@@ -135,7 +135,7 @@ def syntax_file(gcs_uri):
135
135
tokens = document .analyze_syntax ().tokens
136
136
137
137
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 ))
139
139
140
140
141
141
if __name__ == '__main__' :
Original file line number Diff line number Diff line change 1
1
gapic-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):
124
124
tokens = document .analyze_syntax ().tokens
125
125
126
126
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 ))
128
128
129
129
130
130
def syntax_file (gcs_uri ):
@@ -139,7 +139,7 @@ def syntax_file(gcs_uri):
139
139
tokens = document .analyze_syntax ().tokens
140
140
141
141
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 ))
143
143
144
144
145
145
def 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