hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishant Kelkar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9557) create UDF to measure strings similarity using Cosine Similarity algo
Date Mon, 29 Jun 2015 21:21:05 GMT

     [ https://issues.apache.org/jira/browse/HIVE-9557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nishant Kelkar updated HIVE-9557:
---------------------------------
    Attachment: HIVE-9557.3.patch

Attaching revision #3 patch to remove hidden dependency on FastMath (it comes in via org.apache.spark:spark-core_2.10
dependency) from commons-math3. Using library Math instead.


> 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: Nishant Kelkar
>              Labels: CosineSimilarity, SimilarityMetric, UDF
>         Attachments: HIVE-9557.1.patch, HIVE-9557.2.patch, HIVE-9557.3.patch, udf_cosine_similarity-v01.patch
>
>
> 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)

Mime
View raw message