Hello All,
  I needed some logic behind the code for text analysis. its like i have to calculate the frequency of the each of the tri-grams present in a given piece of text
i.e i need a way to get the number of occurence of 't' follwoed by 'he'
for the word 'the' in whole of the text.

for text : ' hello how are you '
i need to get occurences of 'h' follwed by 'el' then 'e' follwed by 'll'...
and so on for each of the words present if a space is present then it is considered as a type of character only...
Can you please help me with this...
I was able to do it for bigrams where i had only 2 characters and used 2 d arrays...but for 3 charcters i am still lost...
Can anybody help me with this...
Thanks



_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to