Fuzzy Matching

15 views
Skip to first unread message

James

unread,
Feb 15, 2012, 11:09:21 PM2/15/12
to bite-discuss
Hi all,

I am a little interested in how you performed the fuzzy matching of
elements. Where in the source code is this logic? Do you know of any
libraries around which do similar things? I wrote something like this
in java for comparing dom trees between browsers but I am keen to see
a javascript version and see the differences.

Thanks,
James

Po Hu

unread,
Feb 16, 2012, 1:25:24 PM2/16/12
to bite-discuss
By fuzzy matching, we meant a scoring algorithm which scores every
candidate element based on how it matches the attributes that were
recorded. Users could specify the importance of an attribute to
influence the score. In the end, whichever element gets the top score
succeeds. The code is in http://code.google.com/p/bite-project/source/browse/common/extension/dom/elementhelper.js

James

unread,
Feb 16, 2012, 9:31:13 PM2/16/12
to bite-discuss
Thanks alot Po,

Like I said I do a similar thing in java except I record all of the
attributes and automatically rank them in order of importance.
 Similarly I try to use it's position in the dom as well, it looks
like you are doing a similar thing with parents etc.  I will try to
look over it more in the weekend.

Thanks again,
James

On Feb 17, 7:25 am, Po Hu <p...@google.com> wrote:
> By fuzzy matching, we meant a scoring algorithm which scores every
> candidate element based on how it matches the attributes that were
> recorded. Users could specify the importance of an attribute to
> influence the score. In the end, whichever element gets the top score
> succeeds. The code is inhttp://code.google.com/p/bite-project/source/browse/common/extension/...
Reply all
Reply to author
Forward
0 new messages