Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.78 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.78 KB

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