in reply to Re^3: Help required in RE strategy
in thread Help required in RE strategy
... as input ->Compaq Presario Laptop Model No P440 L100 Series (PSLA0L-00U00E)
Then we need todo something like this:00 440 100 Compaq Laptop Model No Presario Series PSLA
How you then analyze this match statistic depends on the data. But the editdistance is probably the wrong metric, you are right.... # get vendor id: SELECT id FROM vendor WHERE NAME=00 or NAME=440 ... # check all words foreach (@word) { SELECT product_id FROM words WHERE vendor_id=? and word=? for my $id (@ids) $cnt{$id}++ } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Help required in RE strategy
by suaveant (Parson) on Aug 22, 2007 at 18:02 UTC |