@@ -53,7 +53,7 @@ Install Dependencies
53
53
$ virtualenv env
54
54
$ source env/bin/activate
55
55
56
- #. Install the dependencies needed to run the samples .
56
+ #. Install the dependencies needed to run the sample .
57
57
58
58
.. code-block :: bash
59
59
@@ -62,7 +62,7 @@ Install Dependencies
62
62
.. _pip : https://pip.pypa.io/
63
63
.. _virtualenv : https://virtualenv.pypa.io/
64
64
65
- Samples
65
+ Sample
66
66
-------------------------------------------------------------------------------
67
67
68
68
Quickstart
@@ -81,58 +81,6 @@ To run this sample:
81
81
$ python quickstart.py
82
82
83
83
84
- Snippets
85
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
86
-
87
- .. image :: https://gstatic.com/cloudssh/images/open-btn.png
88
- :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
89
-
90
-
91
-
92
-
93
- To run this sample:
94
-
95
- .. code-block :: bash
96
-
97
- $ python snippets.py
98
-
99
- usage: snippets.py [-h]
100
- {classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
101
- ...
102
-
103
- This application demonstrates how to perform basic operations with the
104
- Google Cloud Natural Language API
105
-
106
- For more information, the documentation at
107
- https://cloud.google.com/natural-language/docs.
108
-
109
- positional arguments:
110
- {classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
111
- classify-text Classifies content categories of the provided text.
112
- classify-file Classifies content categories of the text in a Google
113
- Cloud Storage file.
114
- sentiment-entities-text
115
- Detects entity sentiment in the provided text.
116
- sentiment-entities-file
117
- Detects entity sentiment in a Google Cloud Storage
118
- file.
119
- sentiment-text Detects sentiment in the text.
120
- sentiment-file Detects sentiment in the file located in Google Cloud
121
- Storage.
122
- entities-text Detects entities in the text.
123
- entities-file Detects entities in the file located in Google Cloud
124
- Storage.
125
- syntax-text Detects syntax in the text.
126
- syntax-file Detects syntax in the file located in Google Cloud
127
- Storage.
128
-
129
- optional arguments:
130
- -h, --help show this help message and exit
131
-
132
-
133
-
134
-
135
-
136
84
The client library
137
85
-------------------------------------------------------------------------------
138
86
0 commit comments