Ezhil-Language-Foundation / open-tamil

Open Source Tamil NLP Tools - தமிழ் இயற்கை மொழி பகுப்பாய்வு நிரல்தொகுப்பு
http://tamilpesu.us
MIT License
266 stars 81 forks source link

OpenTamilWeb app - demo the classifier for English vs Tamil transliterated words #144

Open arcturusannamalai opened 6 years ago

arcturusannamalai commented 6 years ago

SciKitLearn classifier is present in the examples of OpenTamil to classify if given sequence of Tamil letters is English transliteration or original Tamil letters.

e.g. காழ்ப்பு -vs- பக்கெட்

abuvanth commented 6 years ago

Create Classifier dump and scaler dump

git clone https://github.com/Ezhil-Language-Foundation/open-tamil.git

cd open-tamil/examples/classifier

python modelprocess2.py

Now see the folder that contains

test_scaler.pkl and nn-Tue Aug 21 10:33:31 2018.pkl files

copy these two files into opentamilapp folder for production

Now rename the file name "nn-Tue Aug 21 10:33:31 2018.pkl" to "test_nn.pkl"

view and templates are already coded.

arcturusannamalai commented 6 years ago

Thanks, @abuvanth ! Much appreciated.