machine
machine copied to clipboard
Simple machine learning algorithm for crystal lang
These are just a couple of fixes for the current crystal.
Tiny update that which makes lib compatible with latest crystal version.
I know that these changes fix machine for Crystal 0.27, but I haven't checked previous Crystal versions.
On Crystal `0.25.1` I get this error: ```crystal Error in line 20: instantiating 'Machine::Bayes::BayesClasifier#classify(String)' in lib/machine/src/machine/bayes/bayes_classifier.cr:69: instantiating 'classify_with_score(String)' classify_with_score(text).keys.first ^~~~~~~~~~~~~~~~~~~ in lib/machine/src/machine/bayes/bayes_classifier.cr:65: instantiating 'classifications(String)' classifications(text).map { |k, v| {k =>...
This is really cool! Can you add some usage instructions for us mere mortals? :)