Est. Budget: $200.00
I use IDLE. I simply want the MOST EFFICIENT code possible for generating word N-grams.
I want to read a text file that contains a list of keywords. Sample document attached. From this file, I want the ability in the script to define an integer. This integer defines the maximum N-gram word list to output.
For example, let's say I set this value to 3.
That means, 1-word phrases, 2-word phrases and 3-word phrases will be outputted ALONG WITH ...