0

I used the packages "tm", "lda" and "topicmodels" in R.

Is there open source code for these packages (in other language(s)) so that I could modify the core??

Nick Cox
  • 35,529
  • 6
  • 31
  • 47
Vampir
  • 21
  • 5
  • 3
    Each package available from CRAN is open-source. Look at the corresponding CRAN page under "Package source": http://cran.r-project.org/web/packages/tm/index.html – Roland Jan 29 '14 at 15:38
  • Packages do not modify the core, they add to it. Most `R` packages are written in `R`. – Peter Flom Jan 29 '14 at 15:44
  • I get a result by using LDA and CTM,now i am going to call my commandes in R from java. Will be helpful "Topic Modeling - Mallet" for me to having the same reuslt that i have now in R? – Vampir Jan 29 '14 at 16:02
  • 2
    http://stackoverflow.com/questions/19226816/how-can-i-view-the-source-code-for-a-function – Ari B. Friedman Jan 29 '14 at 16:10

1 Answers1

6

Every package on CRAN (the main R archive) has a link to the source code. e.g.

http://cran.r-project.org/web/packages/lda/index.html

lists:

Reference manual:   lda.pdf
Package source:     lda_1.3.2.tar.gz
MacOS X binary:     lda_1.3.2.tgz
Windows binary:     lda_1.3.2.zip
Old sources:    lda archive 

download the package source, extract it (7-zip will extract tar.gz archives on Windows, I think) and there will be the source code.

Spacedman
  • 92,590
  • 12
  • 140
  • 224