yooper / php-text-analysis

PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language
https://github.com/yooper/php-text-analysis/wiki
MIT License
527 stars 87 forks source link

Ngrams improvements #47

Closed Euak closed 5 years ago

Euak commented 5 years ago

Hello, @yooper Based on the Ngram Statistics Package by Ted Pedersen and Satanjeev Banerjee I implemented some features for the Ngram functionalities of this library.

There is a much more detailed description of Pedersen and Banerjee's package at their paper, available at: http://www.d.umn.edu/~tpederse/Pubs/cicling2003-2.pdf

Feel free to contact me in case of questions.

yooper commented 5 years ago

Thank you for the contribution. Before I merge, please make sure to camelCase your variables. You have several variables using underscore.

Euak commented 5 years ago

Hi, @yooper. Sorry for that mistake. I fixed it. Thanks.