Skip to content

Commit

Permalink
Remove Natural Language samples not included docs. [(#3074)](GoogleCl…
Browse files Browse the repository at this point in the history
…oudPlatform/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.
  • Loading branch information
jsimonweb authored Mar 10, 2020
1 parent d591879 commit e673ced
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 531 deletions.
56 changes: 2 additions & 54 deletions samples/snippets/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Install Dependencies
$ virtualenv env
$ source env/bin/activate
#. Install the dependencies needed to run the samples.
#. Install the dependencies needed to run the sample.

.. code-block:: bash
Expand All @@ -62,7 +62,7 @@ Install Dependencies
.. _pip: https://pip.pypa.io/
.. _virtualenv: https://virtualenv.pypa.io/

Samples
Sample
-------------------------------------------------------------------------------

Quickstart
Expand All @@ -81,58 +81,6 @@ To run this sample:
$ python quickstart.py
Snippets
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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




To run this sample:

.. code-block:: bash
$ python snippets.py
usage: snippets.py [-h]
{classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
...
This application demonstrates how to perform basic operations with the
Google Cloud Natural Language API
For more information, the documentation at
https://cloud.google.com/natural-language/docs.
positional arguments:
{classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
classify-text Classifies content categories of the provided text.
classify-file Classifies content categories of the text in a Google
Cloud Storage file.
sentiment-entities-text
Detects entity sentiment in the provided text.
sentiment-entities-file
Detects entity sentiment in a Google Cloud Storage
file.
sentiment-text Detects sentiment in the text.
sentiment-file Detects sentiment in the file located in Google Cloud
Storage.
entities-text Detects entities in the text.
entities-file Detects entities in the file located in Google Cloud
Storage.
syntax-text Detects syntax in the text.
syntax-file Detects syntax in the file located in Google Cloud
Storage.
optional arguments:
-h, --help show this help message and exit
The client library
-------------------------------------------------------------------------------

Expand Down
2 changes: 0 additions & 2 deletions samples/snippets/README.rst.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ setup:
samples:
- name: Quickstart
file: quickstart.py
- name: Snippets
file: snippets.py
show_help: true

cloud_client_library: true
Expand Down
Loading

0 comments on commit e673ced

Please sign in to comment.