Skip to content

A .NET Core 2.2 implementation of original PersianStemmer-CSharp project.

License

Notifications You must be signed in to change notification settings

Jalalx/PersianStemmer-CSharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PersianStemmer.Core

A .NET Core 2.2 implementation of original PersianStemmer-CSharp project.

Build status

Installing Nuget Package

If you're using Visual Studio, run the following command in Package Manager Console:

Install-Package PersianStemmer.Core

Or in dotnet command line:

add package PersianStemmer.Core

Code Example

Use DefaultPersianStemmer.Run(string) method to get the stemmed word.

using PersianStemmer.Core.Stemming.Persian;

DefaultPersianStemmer stemmer = new DefaultPersianStemmer();
string word1 = stemmer.Run("زیباست");
// زیبا
string word2 = stemmer.Run("پدران");
// پدر

Notice: If you're using Dependency Injection in you project, register DefaultPersianStemmer as a singleton dependency.

Citation

If you use this software please cite the followings:

Taghi-Zadeh, Hossein and Sadreddini, Mohammad Hadi and Diyanati, Mohammad Hasan and Rasekh, Amir Hossein. 2015. A New Hybrid Stemming Method for Persian Language. In Digital Scholarship in the Humanities. The Oxford University Press. DOI Link

H. Taghi-Zadeh and M. H. Sadreddini and M. H. Dianaty and A. H. Rasekh. 2013. A New Rule-Based Persian Stemmer Using Regular Expression (In Persian). In Iranian Conference on Intelligent Systems (ICIS 2013), pages 401–407. Link

About

A .NET Core 2.2 implementation of original PersianStemmer-CSharp project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%