Suppose i have Two Text Articles (article 'a' => x words, article 'b' => y words)
i find the total number of words in 'a' = x the total number of occurances of the word "the" in the article = x1
probability of the word 'the' in article 'a' => x1/x (i have stored this as decimal, so i dont have exact x1 and x at a later stage)
now i want to merge(Add ?) the probability of the same word 'the' in article 'b', which is y1/y
how should i do that, i suppose simply adding will be wrong.
as a later stage i will get more articles 'c', 'd'... and i want to keep the probability updates, how should i do this ?
Thank you.