Home >Backend Development >PHP Tutorial >Recommendation algorithm - Is there any php library with stemming function?

Recommendation algorithm - Is there any php library with stemming function?

WBOY
WBOYOriginal
2016-07-06 13:53:571615browse

Python’s nltk is very useful.

But does PHP have a corresponding library?

In the recommendation algorithm, classification feature words are all stems;

The website is written in PHP. As a cold start, the feature words input by the user must be stemmed before they can be compared with the classification feature words.

Or is there any other method?

Reply content:

Python’s nltk is very useful.

But does PHP have a corresponding library?

In the recommendation algorithm, classification feature words are all stems;

The website is written in PHP. As a cold start, the feature words input by the user must be stemmed before they can be compared with the classification feature words.

Or is there any other method?

Not sure if NlpTools is suitable for you?

You can also directly call the free Chinese word segmentation API on the Internet
For details, please refer to https://www.zhihu.com/question/35814484/answer/64993351

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn