Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> fuzzy logic through pig programming

Harshit Bhargava 2013-06-28, 02:31
TianYi Zhu 2013-06-28, 03:51
Julien Le Dem 2013-06-28, 19:54
Harshit Bhargava 2013-06-27, 14:18
Copy link to this message
Re: fuzzy logic through pig programming
This is called the levenshtein distance. Since it is a metric you would be
responsible for determining the distance two strings could be from one
another and still considered the same.

I'd implement this as UDF taking two strings,s1 and s2 a float that is
between 0 < f < max(len(s1), len(s2))
On Thu, Jun 27, 2013 at 10:18 AM, Harshit Bhargava <

> Hi,
> I want a fuzzy logic in pig latin language which should match two string
> for
> Example1
> I have two words 'Ramesh' and 'Rahim' I want to check how much percentage
> of the string are equal
> Example2
> If the two words are 'Ramesh' and 'Ramesh' .then  it should give 100%.
> Kindly provide the solution if available.
> Thanks
> Harshit Bhargava
> This communication may be confidential and privileged and the views
> expressed herein may be personal and are not necessarily the views of Shore
> Group Associates, LLC. It is for the exclusive use of the intended
> recipient(s). If you are not the intended recipient(s), please note that
> any distribution, copying or use of this communication or the information
> in it is strictly prohibited. If you have received this communication in
> error, please notify us by email ([EMAIL PROTECTED]) and then
> delete the email and any copies of it. Visit us at
> www.shoregroupassociates.com

william.dowling@... 2013-06-27, 19:38