guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#39416] [PATCH 10/34] gnu: Add package r-topicmodels


From: Lars-Dominik Braun
Subject: [bug#39416] [PATCH 10/34] gnu: Add package r-topicmodels
Date: Tue, 4 Feb 2020 14:56:02 +0100

* gnu/packages/cran.scm (r-topicmodels): New variable.
---
 gnu/packages/cran.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 917b5df643..9e5006b5f3 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -19513,3 +19513,33 @@ co-occurrences, analyzing keywords, computing feature 
similarities and
 distances, applying content dictionaries, applying supervised and unsupervised
 machine learning, visually representing text and text analyses, and more.")
     (license license:gpl3)))
+
+(define-public r-topicmodels
+  (package
+    (name "r-topicmodels")
+    (version "0.2-9")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (cran-uri "topicmodels" version))
+        (sha256
+          (base32
+            "1757r5x8bsl4dk106xg6481mvdkdz9vwg87n7rpbvdkavsvhyxs0"))))
+    (properties `((upstream-name . "topicmodels")))
+    (build-system r-build-system)
+    (native-inputs
+      `(("gsl" ,gsl)))
+    (propagated-inputs
+      `(("r-modeltools" ,r-modeltools)
+        ("r-slam" ,r-slam)
+        ("r-tm" ,r-tm)))
+    (home-page
+      "https://cran.r-project.org/package=topicmodels";)
+    (synopsis "Topic Models")
+    (description
+      "This package provides an interface to the C code for Latent Dirichlet
+Allocation (LDA) models and Correlated Topics Models (CTM) by David M.  Blei
+and co-authors and the C++ code for fitting LDA models using Gibbs sampling by
+Xuan-Hieu Phan and co-authors.")
+    (license license:gpl2)))
+
-- 
2.20.1






reply via email to

[Prev in Thread] Current Thread [Next in Thread]