Pattern Recognition Algorithms in Node.js or PHP?
algorithm, nlp, node.js, pattern-recognition, php
Solution
I've never found a single library that encapsulates different analysis patterns. You may find specific solutions easily though.
N-Gram analysis for example can be done with this PHP extension: http://pecl.php.net/package/TextCat
There are several bayes implementations as well, even tutorials.
I've never found Kohonen-nets or self-organizing maps implemented in PHP, but multi-layer perceptrons are trivial. IA can do pattern analysis fairily well.
There are projects that bind PHP to OpenCV (a library for realtime image/video analysis). Currently, the only implementation I know is for detecting human faces in pictures. The source is open https://github.com/infusion/PHP-Facedetect, so it should be easy to bind other OpenCV goodness (OpenCV can do a lot of stuff with images).
PHP itself is interpreted, most heavy solutions for pattern analysis won't perform well under this limitation. This is why most solutions for this in PHP are written in C as an extension.
Problem
I would like to begin experimenting with algorithms that recognize patterns in data. I deal with many types of sequences (image pixels, text input, user movement), and it would be fun to make use of Pattern Recognition to try to pull meaningful data out of different datasets. Like the majority of the web, my data is mostly text or integer-key based. Are their any classes that give the basic framework for checking/creating patterns for PHP or Nodejs?