varnamproject-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Varnamproject-discuss] stemmer functionality


From: Kevin Martin
Subject: [Varnamproject-discuss] stemmer functionality
Date: Sat, 14 Jun 2014 12:40:40 +0530

I've added a --stem <word> option to varnamc. It can only do one simple stemming right now : ാ to ്.

for example:

address@hidden ~/Development/libvarnam/examples $ varnamc -s ml -m പരീക്ഷയാ
Using /usr/local/lib/libvarnam.so
പരീക്ഷയ്

This is because I haven't added the code to check for more complex ending if the first ending is not in the stemrules table in ml.vst

Also,
varnamc -c schemes/ml now inserts the stem rules to a table stemrules in ml.vst

A small helper function strbuf_get_ending() as been added that makes use of the recently added strbuf_chars()

The commit : https://github.com/lonesword/libvarnam/commit/bb0a2998a87775d76b4377b48c7a8d5ae272791d

I haven't written any tests yet.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]