How to filter Adjectives from a String in C# .NET Framework

Cloudmersive
2 min readJul 16, 2020

--

Natural language processing has come a long way in recent years, with powerful new Deep Learning technology causing exponential leaps forward in terms of overall accuracy. To make use of this new tech, however, it is often necessary to spend weeks just on training the AI for the desired task, besides the usual development time itself. If you don’t have time for all that and want to begin using NLP right now, I can show you how to do it in a few minutes.

We will be using an API, which can be installed using this command for NuGet:

Install-Package Cloudmersive.APIClient.NET.NLP -Version 4.0.9

Now we can proceed with calling our command for filtering adjectives:

using System;using System.Diagnostics;using Cloudmersive.APIClient.NET.NLP.Api;using Cloudmersive.APIClient.NET.NLP.Client;using Cloudmersive.APIClient.NET.NLP.Model;namespace Example{public class PosTaggerTagAdjectivesExample{public void main(){// Configure API key authorization: ApikeyConfiguration.Default.AddApiKey("Apikey", "YOUR_API_KEY");// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// Configuration.Default.AddApiKeyPrefix("Apikey", "Bearer");var apiInstance = new PosTaggerApi();var request = new PosRequest(); // PosRequest | Input stringtry{// Part-of-speech tag a string, filter to adjectivesPosResponse result = apiInstance.PosTaggerTagAdjectives(request);Debug.WriteLine(result);}catch (Exception e){Debug.Print("Exception when calling PosTaggerApi.PosTaggerTagAdjectives: " + e.Message );}}}}

And there you go! Deep Learning tech is now at your beck and call!

--

--

Cloudmersive
Cloudmersive

Written by Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

No responses yet