please give me a code for finding bigrams in a given file.
example .. if the word is I AM AN OLD MAN..
output should be in a list as [I AM] [AM OLD] [OLD MAN].
i have seen some programs but its giving bi grams of a word.
i would like to get the bigrams in a sentence.