Cognitive Services brings AI within reach of every developer and data scientist. With leading models, a variety of use cases can be unlocked. All it takes is an API call to embed the ability to see, hear, speak, search, understand, and accelerate advanced decision-making into your apps. Enable developers and data scientists of all skill levels to easily add AI capabilities to their apps.
Azure Cognitive Services are cloud-based artificial intelligence (AI) services that help you build cognitive intelligence into your applications. They are available as REST APIs, client library SDKs, and user interfaces. You can add cognitive features to your applications without having AI or data science skills. Cognitive Services enable you to build cognitive solutions that can see, hear, speak, understand, and even make decisions.
Categories of Cognitive Services
Cognitive Services can be categorized into four main pillars:
To create a new TextAnalyticsClient to detect the language a document is written in, you need a Cognitive Services or Language service endpoint and credentials.
string endpoint = "<endpoint>"; string apiKey = "<apiKey>"; var client = new TextAnalyticsClient(new Uri(endpoint), new AzureKeyCredential(apiKey));
To detect the language of a single document, use the DetectLanguage method. The detected language the document is written in will be returned in the DetectedLanguage object, which contains the language and the confidence that the service's prediction is correct.
string document = @"Este documento está escrito en un idioma diferente al Inglés. Tiene como objetivo demostrar cómo invocar el método de Detección de idioma del servicio de Text Analytics en Microsoft Azure."; try { Response<DetectedLanguage> response = client.DetectLanguage(document); DetectedLanguage language = response.Value; Console.WriteLine($"Detected language {language.Name} with confidence score {language.ConfidenceScore}."); } catch (RequestFailedException exception) { Console.WriteLine($"Error Code: {exception.ErrorCode}"); Console.WriteLine($"Message: {exception.Message}"); }
Source: azure-sdk-for-net/Sample1_DetectLanguage.md at main · Azure/azure-sdk-for-net
Language Studio is a set of UI-based tools that lets you explore, build, and integrate features from Azure Cognitive Service for Language into your applications.
Language Studio provides you with a platform to try several service features and see what they return visually. It also provides an easy-to-use experience to create custom projects and models to work on your data. Using the Studio, you can get started without needing to write code and then use the available client libraries and REST APIs in your application.