3
3
Google Cloud Natural Language API Python Samples
4
4
===============================================================================
5
5
6
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
7
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/README.rst
8
+
9
+
6
10
This directory contains samples for Google Cloud Natural Language API. The `Google Cloud Natural Language API `_ provides natural language understanding technologies to developers, including sentiment analysis, entity recognition, and syntax analysis. This API is part of the larger Cloud Machine Learning API.
7
11
8
12
- See the `migration guide `_ for information about migrating to Python client library v0.26.1.
@@ -58,6 +62,10 @@ Samples
58
62
Quickstart
59
63
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
60
64
65
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
66
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/quickstart.py;language/cloud-client/v1/README.rst
67
+
68
+
61
69
62
70
63
71
To run this sample:
@@ -70,6 +78,10 @@ To run this sample:
70
78
Snippets
71
79
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
72
80
81
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
82
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/snippets.py;language/cloud-client/v1/README.rst
83
+
84
+
73
85
74
86
75
87
To run this sample:
@@ -79,17 +91,20 @@ To run this sample:
79
91
$ python snippets.py
80
92
81
93
usage: snippets.py [-h]
82
- {sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
94
+ {classify-text,classify-file, sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
83
95
...
84
-
96
+
85
97
This application demonstrates how to perform basic operations with the
86
98
Google Cloud Natural Language API
87
-
99
+
88
100
For more information, the documentation at
89
101
https://cloud.google.com/natural-language/docs.
90
-
102
+
91
103
positional arguments:
92
- {sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
104
+ {classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
105
+ classify-text Classifies content categories of the provided text.
106
+ classify-file Classifies content categories of the text in a Google
107
+ Cloud Storage file.
93
108
sentiment-entities-text
94
109
Detects entity sentiment in the provided text.
95
110
sentiment-entities-file
@@ -104,13 +119,14 @@ To run this sample:
104
119
syntax-text Detects syntax in the text.
105
120
syntax-file Detects syntax in the file located in Google Cloud
106
121
Storage.
107
-
122
+
108
123
optional arguments:
109
124
-h, --help show this help message and exit
110
125
111
126
112
127
113
128
129
+
114
130
The client library
115
131
-------------------------------------------------------------------------------
116
132
0 commit comments