More formally, let samples (d,w) be the vector of assignments that have been collected for a certain word w in a certain document d with each samples referring to the i-th sampled topic ID for (d, w).
samples (d,w) can be seen as the Markov chain for a particular word in a particular document.