How do I write a Perl Bigram Program?

anna

New member
I need to make a program in perl that processes text for bigram frequency.

My program should :
STEP [1.] Take the text filename and a word as input
STEP [2.] Process the text for bigrams and their frequencies, and store them in a data structure of your choice
STEP [3.] Using the inputted word, count how many times the word appears in any bigram stored for the given text file.
Output your results to a STDOUT in a format of your choice.
 
Back
Top