Git Product home page Git Product logo

bangla-stemmer's Introduction

Bangla-Stemmer

This program converts Bangla words to their corresponsing stems.

Sample Input: করিম কাজটি করছে 
Sample Output: করিম কাজ কর 

Running the application

Run the application using the following command:

Stemmer -r rulesfile inputfile

Rules file defines how the stemming will be conducted. The default rules file is common.rules, which is included in this repository.

Structure of the rules file

The rules file is divided into several blocks. Each block is enclosed within curly braces. Each block contains sevaral rules, each in a line. These rules dictates how the stemming will be performed. On first pass of the algorithm, the rules on the first block is applied. On second pass, rules of the second of block is applied and so on.

Consider the following rules:

X                       # When X appears at the end of a word, remove it
Y       ->      Z       # When Y appears at the end of a word, replace it with Z
Y.Z     ->      A.B     # When Y, followed by some character a, followed by Z 
                        # appears at the end of a word, replace it with AaB                        

Here, X, Y, Z etc can consist of one or more characters. Rules within the same block are arranged in decreasing order of priority. So if a word matches more than one rule within the same block, first matching rule will be applied.

bangla-stemmer's People

Contributors

magurmach avatar rafi-kamal avatar

Watchers

Shakil Ahmed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.