Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add small, generated version of language_sentiment_text #1660

Merged
merged 10 commits into from
Aug 30, 2018

Commits on Aug 27, 2018

  1. Generated sample: language_sentiment_text

    FYI generated from the following YAML GAPIC config:
    
      sample_value_sets:
        - id: analyze_sentiment
          title: "Analyzing Sentiment"
          description: "Proof of concept for analyzing sentiment"
          parameters:
            defaults:
            - document.type=PLAIN_TEXT
            - document.content="Your text to analyze, e.g. Hello, world!"
            attributes:
            - parameter: document.content
              sample_argument: true
          on_success:
          - define: sentiment=$resp.document_sentiment
          - print:
            - "Score: %s"
            - sentiment.score
          - print:
            - "Magnitude: %s"
            - sentiment.magnitude
        samples:
          standalone:
          - calling_forms: ".*"
            value_sets: analyze_sentiment
            region_tag: language_sentiment_text
    Rebecca Taylor committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    b585a28 View commit details
    Browse the repository at this point in the history
  2. Add requirements.txt (not currently generated)

    Rebecca Taylor committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    7ed0cab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f11bff View commit details
    Browse the repository at this point in the history
  4. Move language_python_migration_document_text

    Move language_python_migration_document_text so it uses a different snippet in preparation for deprecation of existing language_sentiment_text sample
    Rebecca Taylor committed Aug 27, 2018
    Configuration menu
    Copy the full SHA
    29809fa View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2018

  1. Rename generated snippets so filename == region tag

    Rebecca Taylor committed Aug 28, 2018
    Configuration menu
    Copy the full SHA
    48bb113 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    df70051 View commit details
    Browse the repository at this point in the history
  3. Update Copyright year to 2018 in new hand-written file

    Rebecca Taylor committed Aug 28, 2018
    Configuration menu
    Copy the full SHA
    1ac1bb1 View commit details
    Browse the repository at this point in the history
  4. Fix lint errors of #language_sentiment_text test

    Rebecca Taylor committed Aug 28, 2018
    Configuration menu
    Copy the full SHA
    dabc4cd View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2018

  1. Regenerate #language_sentiment_text to fix lint errors (updated Pytho…

    …n sample template)
    Rebecca Taylor committed Aug 29, 2018
    Configuration menu
    Copy the full SHA
    c62ac9d View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2018

  1. Binary string support in samples!

    Rebecca Taylor committed Aug 30, 2018
    Configuration menu
    Copy the full SHA
    1b9aa96 View commit details
    Browse the repository at this point in the history