0

I try to find a way to define in PHP a semantic by comparing some phrases and find occurence for example i have something like

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

)

And I expected for the output

Array
(

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

)

How can I proceed ?

Halvor Holsten Strand
  • 19,829
  • 17
  • 83
  • 99
user492642
  • 169
  • 1
  • 3
  • 12
  • But how do you will know what are you searching? – Luan Soares Jan 21 '16 at 12:09
  • @GeoffAtkins nothing for the moment I m trying to find a solution to do that I m looking in 'Latent semantic analysis' but i dont know if it s a good solution – user492642 Jan 21 '16 at 12:12
  • Why is "Car Dog Fish" not your expected output? Why is Pictures Text not? – Daniel Jan 23 '16 at 16:44
  • In other words, you have imbued some of these words with a magical "semantic meaning", but you haven't described in any way how or why. – Daniel Jan 23 '16 at 16:45

0 Answers0