查找不同短语之间的语义词

时间:2016-01-21 11:54:52

标签: php algorithm semantics

我试图通过比较一些短语并找到出现来找到一种在PHP中定义语义的方法,例如我有类似的东西

Array
(

    [0] => Cats love Mouse Car Dog Fish
    [1] => Pictures Cats Some Text Mouse
    [2] => Game of thrones 2015 Series 
    [3] => Stark Series lannister John Game of thrones
    [4] => Pop Rock David Bowie Music
    [5] => David Great Lower Text Bowie

)

我期待输出

Array
(

    [0] => Cats Mouse
    [1] => Game of thrones Series
    [2] => David Bowie 

)

我该怎么办?

0 个答案:

没有答案
相关问题