varnamproject / govarnam

Easily type Indic languages on computer and mobile. GoVarnam is a cross-platform transliteration library. Manglish -> Malayalam, Thanglish -> Tamil, Hinglish -> Hindi plus another 10 languages. GoVarnam is a near-Go port of libvarnam
https://varnamproject.com
Other
145 stars 11 forks source link

Clearing Dictionary #30

Closed arunksoman closed 1 year ago

arunksoman commented 1 year ago

How can I clear dictionary. Consider I trained lot of data from a large text file and things went wrong due to lot of incorrect words added to dictionary. How can I clear complete dictionary and start evrything from scratch?

subins2000 commented 1 year ago

You can remove the dictionary DB directly. If you're on Linux do this :

sudo rm ~/.local/share/varnam/learnings/ml.vst.learnings*

The dictionary DB is just a sqlite DB. You can use software like SQLite Browser to know what's inside it.

arunksoman commented 1 year ago

I am closing this issue. I renamed the vst file and tried to train again. It generated a new vst file on .local/share/varnam/learnings/ directory.