C# Класс BuildIt.CognitiveServices.CognitiveServiceClient

Наследование: ICognitiveServiceClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcademicInterpretApiRequestAsync ( AcademicParameters academicParameters ) : Task>

Interprets a natural language user query string

BingAutosuggestApiRequestAsync ( string subscriptionKey, string context, string market ) : Task>

Empower users to type less and do more with automated and complete search suggestions.

BingSearchApiRequestAsync ( BingSearchParameters bingSearchParameters ) : Task>

Add a variety of image search options to your app or website, from trending images to detailed insights.

BreakIntoWordsApiRequestAsync ( BreakIntoWordsParameters breakIntoWordsParameters ) : Task>

Insert spaces into a string of words lacking spaces, like a hashtag or part of a URL.

ComputerVisionApiRequestAsync ( string subscriptionKey, Stream photoStream ) : Task>

Extract rich information from images to categorize and process visual data—and protect your users from unwanted Query.

DetectLanguageApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType, int numberofLanguagesToDetect = 1 ) : Task>

The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported

EntityLinkingApiRequestAsync ( string subscriptionKey, string requestBody, string contentType = "text/plain", string selection = null, string offset = null ) : Task>

Entity Linking is a natural language processing tool to help analyzing text for your application

KeyPhrasesApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType ) : Task>

The API returns a list of strings denoting the key talking points in the input text. We employ techniques from Microsoft Office's sophisticated Natural Language Processing toolkit.

SentimentApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType ) : Task>

The API returns a numeric score between 0 and 1. Scores close to 1 indicate positive sentiment and scores close to 0 indicate negative sentiment.

SpellCheckApiRequestAsync ( SpellCheckParameters spellCheckParameters ) : Task>

Bing Spell Check API

VisionEmotionApiRequestAsync ( string subscriptionKey, Stream photoStream ) : Task>

Analyze faces to detect a range of feelings and personalize your app's responses.

VisionFaceApiCheckAsync ( string subscriptionKey, Stream photoStream ) : Task>

Detect human faces and compare similar ones, organize people into groups according to visual similarity, and identify previously tagged people in images.

Приватные методы

Метод Описание
UploadAndAnalyzeImage ( string subscriptionKey, Stream imageStream ) : Task
UploadAndDetectEmotion ( string subscriptionKey, Stream imageStream ) : Task
UploadAndDetectFaces ( string subscriptionKey, Stream photoStream ) : Task

Описание методов

AcademicInterpretApiRequestAsync() публичный Метод

Interprets a natural language user query string
public AcademicInterpretApiRequestAsync ( AcademicParameters academicParameters ) : Task>
academicParameters BuildIt.CognitiveServices.Models.Feeds.InputParameters.AcademicParameters
Результат Task>

BingAutosuggestApiRequestAsync() публичный Метод

Empower users to type less and do more with automated and complete search suggestions.
public BingAutosuggestApiRequestAsync ( string subscriptionKey, string context, string market ) : Task>
subscriptionKey string
context string Query body
market string default set en-au
Результат Task>

BingSearchApiRequestAsync() публичный Метод

Add a variety of image search options to your app or website, from trending images to detailed insights.
public BingSearchApiRequestAsync ( BingSearchParameters bingSearchParameters ) : Task>
bingSearchParameters BuildIt.CognitiveServices.Models.Feeds.InputParameters.BingSearchParameters
Результат Task>

BreakIntoWordsApiRequestAsync() публичный Метод

Insert spaces into a string of words lacking spaces, like a hashtag or part of a URL.
public BreakIntoWordsApiRequestAsync ( BreakIntoWordsParameters breakIntoWordsParameters ) : Task>
breakIntoWordsParameters BuildIt.CognitiveServices.Models.Feeds.InputParameters.BreakIntoWordsParameters
Результат Task>

ComputerVisionApiRequestAsync() публичный Метод

Extract rich information from images to categorize and process visual data—and protect your users from unwanted Query.
public ComputerVisionApiRequestAsync ( string subscriptionKey, Stream photoStream ) : Task>
subscriptionKey string
photoStream Stream
Результат Task>

DetectLanguageApiRequestAsync() публичный Метод

The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. A total of 120 languages are supported
public DetectLanguageApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType, int numberofLanguagesToDetect = 1 ) : Task>
subscriptionKey string
jsonString string Request body
contentType string Media type of the body sent to the API. Default is "application/json"
numberofLanguagesToDetect int Format - int32. (Optional) Number of languages to detect. Set to 1 by default.
Результат Task>

EntityLinkingApiRequestAsync() публичный Метод

Entity Linking is a natural language processing tool to help analyzing text for your application
public EntityLinkingApiRequestAsync ( string subscriptionKey, string requestBody, string contentType = "text/plain", string selection = null, string offset = null ) : Task>
subscriptionKey string
requestBody string /// Request body ///
contentType string /// Media type of the body sent to the API. ///
selection string /// The specific word or phrase within the text that is to be entity linked ///
offset string /// The location (in offset by characters) of the selected word or phrase within the input text. ///
Результат Task>

KeyPhrasesApiRequestAsync() публичный Метод

The API returns a list of strings denoting the key talking points in the input text. We employ techniques from Microsoft Office's sophisticated Natural Language Processing toolkit.
public KeyPhrasesApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType ) : Task>
subscriptionKey string
jsonString string Request body
contentType string Media type of the body sent to the API.
Результат Task>

SentimentApiRequestAsync() публичный Метод

The API returns a numeric score between 0 and 1. Scores close to 1 indicate positive sentiment and scores close to 0 indicate negative sentiment.
public SentimentApiRequestAsync ( string subscriptionKey, string jsonString, string contentType = Constants.DefaultContentType ) : Task>
subscriptionKey string
jsonString string Request body
contentType string Media type of the body sent to the API.
Результат Task>

SpellCheckApiRequestAsync() публичный Метод

Bing Spell Check API
public SpellCheckApiRequestAsync ( SpellCheckParameters spellCheckParameters ) : Task>
spellCheckParameters BuildIt.CognitiveServices.Models.Feeds.InputParameters.SpellCheckParameters
Результат Task>

VisionEmotionApiRequestAsync() публичный Метод

Analyze faces to detect a range of feelings and personalize your app's responses.
public VisionEmotionApiRequestAsync ( string subscriptionKey, Stream photoStream ) : Task>
subscriptionKey string
photoStream Stream
Результат Task>

VisionFaceApiCheckAsync() публичный Метод

Detect human faces and compare similar ones, organize people into groups according to visual similarity, and identify previously tagged people in images.
public VisionFaceApiCheckAsync ( string subscriptionKey, Stream photoStream ) : Task>
subscriptionKey string
photoStream Stream
Результат Task>