Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pprzetacznik/nlp-bayes-classifier

Bayes classifier
https://github.com/pprzetacznik/nlp-bayes-classifier

Last synced: 26 days ago
JSON representation

Bayes classifier

Awesome Lists containing this project

README

        

Natural Language Processing - Bayes classifier
============

P(c|w) = (P(w|c) * P(c)) / P(w)

where:

c - the best fix for entered word
w - entered word

Run:
~~~
pip install -r requirements.txt
python -m test_stats
python -m test_bayes
python stats.py żołnież rzołnież
python bayes.py alamakoty test/dramat.iso.utf8 test/dictionary2.txt
~~~