Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Counting word frequency after StopWords removal

by hv (Prior)
on Dec 03, 2022 at 18:43 UTC ( [id://11148537]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my $line = <$fh2>) {
        ++$found{$_} for grep { !$stopwords->{$_} }
                split /\s+/, lc $line;
    }
    print $fh $_, "\t\t", $found{$_}, $/ for sort keys %found;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148537]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found