Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: improving speed in ngrams algorithm

by johngg (Canon)
on Jun 12, 2019 at 10:21 UTC ( [id://11101277]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.026;
    use warnings;
    ...
    
        return @nGrams;
    }
    
  2. or download this
    1-word ngrams of 'this is the text to play with'
    START INDEX: 0 :  this
    ...
    --------------------
    8-word ngrams of 'this is the text to play with'
    --------------------
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-25 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found