[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/28: gnu: Add r-syuzhet.
From: |
guix-commits |
Subject: |
06/28: gnu: Add r-syuzhet. |
Date: |
Mon, 15 Mar 2021 05:55:28 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit bc82567b0bd69e630ae82e77943d5726f0af9e36
Author: Lars-Dominik Braun <ldb@leibniz-psychology.org>
AuthorDate: Mon Mar 15 09:28:28 2021 +0100
gnu: Add r-syuzhet.
* gnu/packages/cran.scm (r-syuzhet): New variable.
---
gnu/packages/cran.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index dd37ae0..6f82302 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -27426,3 +27426,41 @@ in same length matches).")
(description
"Tools that can be used to reshape and restructure text data.")
(license license:gpl2)))
+
+(define-public r-syuzhet
+ (package
+ (name "r-syuzhet")
+ (version "1.0.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "syuzhet" version))
+ (sha256
+ (base32
+ "16iccqdbw02iw82nah6kwz3gwfghi864j2y698n4b9dyc386ijzv"))))
+ (properties `((upstream-name . "syuzhet")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-dplyr" ,r-dplyr)
+ ("r-dtt" ,r-dtt)
+ ("r-nlp" ,r-nlp)
+ ("r-rlang" ,r-rlang)
+ ("r-textshape" ,r-textshape)
+ ("r-tidyr" ,r-tidyr)
+ ("r-zoo" ,r-zoo)))
+ (native-inputs `(("r-knitr" ,r-knitr)))
+ (home-page "https://github.com/mjockers/syuzhet")
+ (synopsis
+ "Extracts Sentiment and Sentiment-Derived Plot Arcs from Text")
+ (description
+ "Extracts sentiment and sentiment-derived plot arcs from text using a
+variety of sentiment dictionaries conveniently packaged for consumption by R
+users. Implemented dictionaries include @dfn{syuzhet} (default) developed in
the
+Nebraska Literary Lab, @dfn{afinn} developed by Finn Arup Nielsen, @dfn{bing}
+developed by Minqing Hu and Bing Liu, and @dfn{nrc} developed by Mohammad, Saif
+M. and Turney, Peter D. Applicable references are available in
+@file{README.md} and in the documentation for the @code{get_sentiment}
+function. The package also provides a hack for implementing Stanford's coreNLP
+sentiment parser. The package provides several methods for plot arc
+normalization.")
+ (license license:gpl3)))
- branch master updated (d059485 -> c3163fe), guix-commits, 2021/03/15
- 02/28: gnu: Add r-qdapregex., guix-commits, 2021/03/15
- 03/28: gnu: Add r-mgsub., guix-commits, 2021/03/15
- 04/28: gnu: Add r-dtt., guix-commits, 2021/03/15
- 06/28: gnu: Add r-syuzhet.,
guix-commits <=
- 08/28: gnu: Add r-english., guix-commits, 2021/03/15
- 11/28: gnu: gzstream: Add PIC flag., guix-commits, 2021/03/15
- 12/28: gnu: Add r-ndjson., guix-commits, 2021/03/15
- 14/28: gnu: Add r-readods., guix-commits, 2021/03/15
- 07/28: gnu: Add r-lexicon., guix-commits, 2021/03/15
- 01/28: gnu: Add r-esc., guix-commits, 2021/03/15
- 09/28: gnu: Add r-textclean., guix-commits, 2021/03/15
- 10/28: gnu: Add r-striprtf., guix-commits, 2021/03/15
- 13/28: gnu: Add r-streamr, guix-commits, 2021/03/15
- 18/28: gnu: Add r-readtext., guix-commits, 2021/03/15