Adding Keywords to the Postings

If we look at the postings in the Erlang mailing list, you’ll see they don’t have any keywords. But even if they did, there is a more fundamental problem. Two different people might read the same document and disagree as to what keywords should be used to describe the document. So, if I do a keyword search, it won’t work if the keywords that the author of the document chose were different from the keywords I chose to search the document with.

Sherlock computes a keyword vector for each posting in the mailing list. We can ask Sherlock what the derived keyword vector was for posting 946 in 2009.

 
1>​ sherlock:get_keyword_vector("2009", 946).
 
[{"protocols",0.6983839995773734},
 
{"json",0.44660371850799946}, ...

Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.