|
> docs11 <- Corpus(VectorSource(docs10))
> tdm <- TermDocumentMatrix(docs11)
> lda <- LDA(tdm, 30,method='Gibbs')
> Terms<-terms(lda,5)
> Terms[,1:5]
output是这样的
Topic 1 Topic 2 Topic 3 Topic 4 Topic 5
[1,] "7" "6" "2" "4" "1"
[2,] "10" "11" "1" "16" "3"
[3,] "14" "19" "9" "17" "4"
[4,] "18" "1" "12" "8" "6"
[5,] "20" "2" "3" "20" "2"
为什么output是数字而不是term呢?
|
|