Entering edit mode
6.3 years ago
aziyamehboob72
•
0
i have a text file with bigrams and ngrams, one bigram and ngram per line.what i want to do is to read each word from that file and then match that in original file. say i have a bigram "cricket match" .firstly,i have to take first word and will search that in original file if it matches then it will take second word. and will check where these 2 words occur together. and on those places where it occur together it will replace these 2 words as one term cricket match. i am not getting it,how i can do this.any help will be appreciated.