When modeling a sentence using an RNN, the state s j that is used to generate the distribution of words w i (where j is the parent of i in the tree), represents the vector embedding of the history of the ancestor words A(w i ).
we count the term P [w i |s j ] only once when computing the likelihood of the sentence.