0

I need a algorithm to calculate and measure the relevance of two words or phrase, e.g. "Apple" and "iPad".

Can anybody give me some hints or related books on such topics?

Thanks.

James Tang
  • 593
  • 6
  • 13

1 Answers1

4

Have a look at mutual information and tf-idf. These are methods that are frequently used in information retrieval. The former quantifies the mutual dependence of two variables (each variable can be a phrase). The latter was traditionally used by search engines to prioritize results that were relevant to a particular query.

mpenkov
  • 21,621
  • 10
  • 84
  • 126