Giter VIP home page Giter VIP logo

malayalam-morphology's Introduction

MALAYALAM MORPHOLOGICAL ANALYZER

SANDHI SPLITTER

Trie consists of nodes and edges which grows as different word pattern arrives. Each node in ourtrie structure stores i. Character, for storing the letter: Char ii.Children, for storing the child nodes: List iii. Word_finished, flag value for future processing: Boolean Two orthogonal tries are built. One as input words given as it is and second trie is build withinput words reversed. The need for the two tries are, first one is used to find the common prefixesand the second one is used to find the common suffix.

The input word is traversed iteratively traversed (character-by-character, appending in eachiteration) through the trie structures checking whether it completes a word, the complete wordsare identified using the Word_finished flag. The complete words identified in the process arekept in a list. The same is done with the reversed form of word and corresponding trie structure.Complete words from both the lists are taken and the cross product of the lists are comparedwith the actual input word. Combinations which has a match greater than a threshold of 85% areselected as possible morphemes. Which is then to be finalized by checking the Sandhi rules. Thecomparison is done using the levenshtein distance, which is a metric that measures how manysingle-character edits are required to change from one string to another.

malayalam-morphology's People

Contributors

nvaneethm avatar

Watchers

 avatar

malayalam-morphology's Issues

ModuleNotFoundError 'Levenshtein'

  ModuleNotFoundError                    
Traceback (most recent call last) <ipython-input-1-2f2adda1bbbf> in <module> 
      2 from collections import Counter 
      3 import pickle
 ----> 4 import Levenshtein
       5 import triee 
      6   ModuleNotFoundError: No module named 'Levenshtein'

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.