DSM_TermContextMatrix["time", ] # row vector for target noun "time"
all.equal(DSM_TermContextMatrix, head(DSM_TermContext, Inf))
# M M' = symmetric matrix of co-occurrence frequencies of nouns within articles
tcrossprod(DSM_TermContextMatrix)
Run the code above in your browser using DataLab