Message |
Benjamin Janes writes: > 4) Generate K_w and q_wr for the new text, N_r will be 1, as only one > text Yes, if there is really only one text relating to the work to be classified. (See below.) > ro_r=m_r.product(w):q_wr^K_w(1-q_wr)^(N-K_w) Yes, if you have enough training data to make a good point estimate of q_wr. > m_r: number of texts in training data, classified in group g, on axis > 'a' No. The number of _works_ in the training data rated as r along axis a. (Of course if there is only EVER one text per work than that's the same.) > K_w: -not sure here-number of times word: w appears in text to rate, or > number of texts word w appears in, in texts being asked to rate. So if > there is only one text being rated, the value is either 1 or 0, in the > text or not in the text. Sorry, that was radically unclear in the glossary at the end (though OK in the body of the text ... vague excuse? :) ). It's the number of texts in which the word appears, 1 or 0. There's no absolutely compelling reason not to consider word counts as opposed to mere presences but this is simpler and makes fewer assumptions. > N: this is the number of texts being rated, will always =1, as only 1 > text will be being rated any one time. As said above, that is so if when someone gives you a work to rate, they only ever have one text relating to it to give you. If you have a film with a synopsis and a review, that is one work, two texts (N = 2). You cannot split the texts for a work up and treat them separately.
|