|
| 1 | +.. This file is automatically generated. Do not edit this file directly. |
| 2 | +
|
| 3 | +Google Cloud Data Labeling Service Python Samples |
| 4 | +=============================================================================== |
| 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=datalabeling/README.rst |
| 8 | + |
| 9 | + |
| 10 | +This directory contains samples for Google Cloud Data Labeling Service. `Google Cloud Data Labeling Service`_ allows developers to request having human labelers label a collection of data that you plan to use to train a custom machine learning model. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +.. _Google Cloud Data Labeling Service: https://cloud.google.com/data-labeling/docs/ |
| 16 | + |
| 17 | +Setup |
| 18 | +------------------------------------------------------------------------------- |
| 19 | + |
| 20 | + |
| 21 | +Authentication |
| 22 | +++++++++++++++ |
| 23 | + |
| 24 | +This sample requires you to have authentication setup. Refer to the |
| 25 | +`Authentication Getting Started Guide`_ for instructions on setting up |
| 26 | +credentials for applications. |
| 27 | + |
| 28 | +.. _Authentication Getting Started Guide: |
| 29 | + https://cloud.google.com/docs/authentication/getting-started |
| 30 | + |
| 31 | +Install Dependencies |
| 32 | +++++++++++++++++++++ |
| 33 | + |
| 34 | +#. Clone python-docs-samples and change directory to the sample directory you want to use. |
| 35 | + |
| 36 | + .. code-block:: bash |
| 37 | +
|
| 38 | + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| 39 | +
|
| 40 | +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. |
| 41 | + |
| 42 | + .. _Python Development Environment Setup Guide: |
| 43 | + https://cloud.google.com/python/setup |
| 44 | + |
| 45 | +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. |
| 46 | + |
| 47 | + .. code-block:: bash |
| 48 | +
|
| 49 | + $ virtualenv env |
| 50 | + $ source env/bin/activate |
| 51 | +
|
| 52 | +#. Install the dependencies needed to run the samples. |
| 53 | + |
| 54 | + .. code-block:: bash |
| 55 | +
|
| 56 | + $ pip install -r requirements.txt |
| 57 | +
|
| 58 | +.. _pip: https://pip.pypa.io/ |
| 59 | +.. _virtualenv: https://virtualenv.pypa.io/ |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +The client library |
| 64 | +------------------------------------------------------------------------------- |
| 65 | + |
| 66 | +This sample uses the `Google Cloud Client Library for Python`_. |
| 67 | +You can read the documentation for more details on API usage and use GitHub |
| 68 | +to `browse the source`_ and `report issues`_. |
| 69 | + |
| 70 | +.. _Google Cloud Client Library for Python: |
| 71 | + https://googlecloudplatform.github.io/google-cloud-python/ |
| 72 | +.. _browse the source: |
| 73 | + https://github.com/GoogleCloudPlatform/google-cloud-python |
| 74 | +.. _report issues: |
| 75 | + https://github.com/GoogleCloudPlatform/google-cloud-python/issues |
| 76 | + |
| 77 | + |
| 78 | +.. _Google Cloud SDK: https://cloud.google.com/sdk/ |
0 commit comments