每列五列显示用于描述该产品mysql的最常用词

时间:2016-09-08 22:37:41

标签: mysql

标题

在mysql中,我有一个包含两列的表,一个是productID,另一个是这个特定产品的评论(评论是一两句话)。表是这样的:

Productid  |  reivew 
------     | ------ 
ciwnfien   | Read between the lines. The visual is what you ar... 
ackjdsnfi  | This planner has helped our family    become so much... 
asinfnn    | I adore this book - What I like most  is that it i... 
.....         .....

我想通过Productid创建另一个表,该表有五个额外的列,每个列显示用于描述该产品的最常用词。我期待的结果将是:

Productid  |   word 1   |   word 2   |   word 3  |   word 4     |   word 5
djneihev   |   good     |  useful    | quick     | expensive    |   light
zknwoduc   |   nice     | convenient | cheap     |User-friendly |   common
sqnowsf    | low-quality|  awful     |  bad      |  too cheap   | dangerous 

还请告诉我如何摆脱“停止词”,如“和”,“the”。(在结果中避免它们) 谢谢!!!

0 个答案:

没有答案