Git Product home page Git Product logo

cognitive-services-ruby-sdk-samples's Introduction

page_type languages products description urlFragment
sample
ruby
azure
These samples will show you how to get up and running using the SDKs for various Cognitive Services.
cognitive-services-ruby-sdk-samples

Cognitive Services SDK Samples (Ruby)

These samples will show you how to get up and running using the SDKs for various Cognitive Services. They'll cover a few rudimentary use cases and hopefully express best practices for interacting with the data from these APIs.

Features

This project framework provides examples for the following services:

Run this sample

  1. If you don't already have it, get ruby.

  2. Clone the repository.

    git clone https://github.com/Azure-Samples/cognitive-services-ruby-sdk-samples.git
    
  3. Install the dependencies.

    cd cognitive-services-ruby-sdk-samples
    bundle install
    
  4. Get a cognitive services API key with which to authenticate the SDK's calls. Sign up here by navigating to the right service and acquiring an API key. You can get a trial key for free which will expire after 30 days.

  5. Set the following environment variables. You only need to set the environment variables for which you want to run the samples.

No. Service Name Environment Variable to set Notes
1 azure_cognitiveservices_computervision COMPUTERVISION_SUBSCRIPTION_KEY Your Service Key
2 azure_cognitiveservices_customsearch CUSTOMSEARCH_SUBSCRIPTION_KEY Your Service Key
CUSTOMSEARCH_SEARCH_CONFIG You can set up the search config here
3 azure_cognitiveservices_entitysearch ENTITYSEARCH_SUBSCRIPTION_KEY Your Service Key
4 azure_cognitiveservices_imagesearch IMAGESEARCH_SUBSCRIPTION_KEY Your Service Key
5 azure_cognitiveservices_newssearch NEWSSEARCH_SUBSCRIPTION_KEY Your Service Key
6 azure_cognitiveservices_spellcheck SPELLCHECK_SUBSCRIPTION_KEY Your Service Key
7 azure_cognitiveservices_textanalytics TEXTANALYTICS_SUBSCRIPTION_KEY Your Service Key
8 azure_cognitiveservices_videosearch VIDEOSEARCH_SUBSCRIPTION_KEY Your Service Key
9 azure_cognitiveservices_websearch WEBSEARCH_SUBSCRIPTION_KEY Your Service Key
10 azure_cognitiveservices_contentmoderator CONTENTMODERATOR_SUBSCRIPTION_KEY Your Service Key
CONTENTMODERATOR_TEAM_NAME You can create and get the team name here

You can set the environment variable as:

```
export {your key}={your value}
```

> [AZURE.NOTE] On Windows, use `set` instead of `export`.
  1. Run the sample.

    ruby run_samples.rb --sdk={sample_to_run}
    
  2. To know the possible values of sdk, you can run the following command:

    ruby run_samples.rb --help
    

To see the code of each example, simply look at the examples in the Samples folder. They are written to be isolated in scope so that you can see only what you're interested in.

cognitive-services-ruby-sdk-samples's People

Contributors

aahill avatar mmyyrroonn avatar sarangan12 avatar supernova-eng avatar tasharm avatar v-hearya avatar v-jaswel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.