in reply to Re: Module for intelligently analyzing and merging spreadsheet data
in thread Module for intelligently analyzing and merging spreadsheet data
Thanks, yeah. I was actually looking at some of the Bayesian modules to see if they could help me determine if the spreadsheet had a header row. I couldn't quite figure out how to do it, though. And there seems to be two different Bayesian modules,the one you mentioned and this one: AI::NaiveBayes
I'm not sure which to use or if they do anything different.
Here is the code I was experimenting with:
my $classifier = AI::NaiveBayes->train( { attributes => { phone => 1, 'last name' => 1, 'fname' => 1, mobile => 1 }, labels => ['has header'] }, ); # Classify a feature vector my $result = $classifier->classify({fname => 5}); # $result is now a AI::NaiveBayes::Classification object my @predictors = $result->find_predictors;
I wasn't sure where to go from there or how to better train it.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Module for intelligently analyzing and merging spreadsheet data
by bliako (Abbot) on Feb 11, 2019 at 10:37 UTC |