SVM Tutorial : Classify text in C#
In this tutorial I will show you how to classify text with SVM in C#.
The main steps to classify text in C# are:
- Create a new project
- Install the SVM package with Nuget
- Prepare the data
- Read the data
- Generate a problem
- Train the model
Step 1: Create the Project
Create a new Console application.
Step 2: Install the SVM package with NuGet
In the solution explorer, right click on "References" and click on "Manage NuGet Packages..."
Select "Online" and in the search box type "SVM".
You should now see the libsvm.net package. Click on Install, and that's it !
There are several libsvm implementations in C#. We will use libsvm.net because it is the more up to date and it is easily downloadable via NuGet.
I am passionate about machine learning and Support Vector Machine. I like to explain things simply to share my knowledge with people from around the world.