- http://www.ruanyifeng.com/blog/2013/03/cosine_similarity.html
- http://my.oschina.net/BreathL/blog/42477
<?php
$obj = new TextSimilarity ($text1, $text2);
echo $obj->run();
Calculate Text Similarity by Cosine Theorem + Segmentation PHP Version
PHPMIT
<?php
$obj = new TextSimilarity ($text1, $text2);
echo $obj->run();