[ 
https://issues.apache.org/jira/browse/HIVE-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598962#comment-14598962
 ] 

Nishant Kelkar commented on HIVE-9557:
--------------------------------------

I can volunteer for creating a patch for this task (this would be my first 
patch ever!). If someone could point me to the place where I am to create this 
class and it's tests, I could upload a patch. Thank you!

> create UDF to measure strings similarity using Cosine Similarity algo
> ---------------------------------------------------------------------
>
>                 Key: HIVE-9557
>                 URL: https://issues.apache.org/jira/browse/HIVE-9557
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Alexander Pivovarov
>            Assignee: Alexander Pivovarov
>
> algo description http://en.wikipedia.org/wiki/Cosine_similarity
> {code}
> --one word different, total 2 words
> str_sim_cosine('Test String1', 'Test String2') = (2 - 1) / 2 = 0.5f
> {code}
> reference implementation:
> https://github.com/Simmetrics/simmetrics/blob/master/src/uk/ac/shef/wit/simmetrics/similaritymetrics/CosineSimilarity.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to