I have a folder which has a number of files which have a format like these
madvise
write
write
write
write
read
read
madvise
ioctl
ioctl
getuid
epoll_pwait
read
recvfrom
sendto
getuid
epoll_pwait
that is it is a set of words which repeat.This is how all the files are like. Now I have created a feature vector table using unigram that is each word becomes a feature and each file becomes a row where I put the frequency of that word occuring in the respective columns.
Now I want to create a similar FVT using bigrams.I was wondering how to do that in this case.