Skip to content

Latest commit

 

History

History
 
 

IBM.WatsonDeveloperCloud.NaturalLanguageUnderstanding.v1

NuGet

Natural Language Understanding

With Natural Language Understanding developers can analyze semantic features of text input, including - categories, concepts, emotion, entities, keywords, metadata, relations, semantic roles, and sentiment.

Installation

Nuget


PM > Install-Package IBM.WatsonDeveloperCloud.NaturalLanguageUnderstanding.v1

.csproj

<ItemGroup>
    <PackageReference Include="IBM.WatsonDeveloperCloud.NaturalLanguageUnderstanding.v1" Version="2.5.0" />
</ItemGroup>

Usage

Natural Language Understanding uses natural language processing to analyze semantic features of any text. Provide plain text, HTML, or a public URL, and Natural Language Understanding returns results for the features you specify. The service cleans HTML before analysis by default, which removes most advertisements and other unwanted content.

You can create custom models with Watson Knowledge Studio that can be used to detect custom entities and relations in Natural Language Understanding.

Analyze

Analyze features of natural language content.

Parameters parameters = new Parameters()
{
    Text = <string-to-analyze>,
    Features = new Features()
    {
        Keywords = new KeywordsOptions()
        {
            Limit = 8,
            Sentiment = true,
            Emotion = true
        }
    }
};

var result = _naturalLanguageUnderstandingService.Analyze(parameters);

List Models

List available custom models.

var result = _naturalLanguageUnderstandingService.GetModels();