From 19d368ac6f3663a1fa650c07d3183cf0bca79a09 Mon Sep 17 00:00:00 2001 From: danaharon Date: Mon, 17 Apr 2017 13:46:35 -0700 Subject: [PATCH 1/2] Update transcribe_async.py --- speech/cloud-client/transcribe_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech/cloud-client/transcribe_async.py b/speech/cloud-client/transcribe_async.py index bbf67355308e..fd0a0340b1c4 100644 --- a/speech/cloud-client/transcribe_async.py +++ b/speech/cloud-client/transcribe_async.py @@ -19,7 +19,7 @@ Example usage: python transcribe_async.py resources/audio.raw - python transcribe_async.py gs://cloud-samples-tests/speech/brooklyn.flac + python transcribe_async.py gs://cloud-samples-tests/speech/vr.flac """ import argparse From fc7b5a31d7115a83888549d6da5b70479232ad52 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Mon, 17 Apr 2017 14:06:05 -0700 Subject: [PATCH 2/2] Update readme --- language/cloud-client/README.rst | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/language/cloud-client/README.rst b/language/cloud-client/README.rst index a0259ce9e866..bfa46d473606 100644 --- a/language/cloud-client/README.rst +++ b/language/cloud-client/README.rst @@ -82,6 +82,43 @@ To run this sample: $ python quickstart.py +Snippets ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + + + +To run this sample: + +.. code-block:: bash + + $ python snippets.py + + usage: snippets.py [-h] + {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: + {sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-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