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

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!

Image for post

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store