Skip to content

Commit e673ced

Browse files
authored
Remove Natural Language samples not included docs. [(#3074)](GoogleCloudPlatform/python-docs-samples#3074)
Remove Natural Language samples that are no longer included in product documentation. The samples used for documentation are now located in https://github.com/googleapis/python-language/tree/master/samples/v1 and thus have replaced the samples in this repo.
1 parent d591879 commit e673ced

File tree

4 files changed

+2
-531
lines changed

4 files changed

+2
-531
lines changed

samples/snippets/README.rst

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Install Dependencies
5353
$ virtualenv env
5454
$ source env/bin/activate
5555
56-
#. Install the dependencies needed to run the samples.
56+
#. Install the dependencies needed to run the sample.
5757

5858
.. code-block:: bash
5959
@@ -62,7 +62,7 @@ Install Dependencies
6262
.. _pip: https://pip.pypa.io/
6363
.. _virtualenv: https://virtualenv.pypa.io/
6464

65-
Samples
65+
Sample
6666
-------------------------------------------------------------------------------
6767

6868
Quickstart
@@ -81,58 +81,6 @@ To run this sample:
8181
$ python quickstart.py
8282
8383
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-
13684
The client library
13785
-------------------------------------------------------------------------------
13886

samples/snippets/README.rst.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ setup:
2323
samples:
2424
- name: Quickstart
2525
file: quickstart.py
26-
- name: Snippets
27-
file: snippets.py
2826
show_help: true
2927

3028
cloud_client_library: true

0 commit comments

Comments
 (0)