Patchwork [v2,1/5] gnu: Add python-snowballstemmer.

login
register
mail settings
Submitter Danny Milosavljevic
Date Oct. 7, 2016, 3:13 p.m.
Message ID <20161007151355.8763-2-dannym@scratchpost.org>
Download mbox | patch
Permalink /patch/16346/
State New
Headers show

Comments

Danny Milosavljevic - Oct. 7, 2016, 3:13 p.m.
* gnu/packages/python.scm (python-snowballstemmer): New variable.
---
 gnu/packages/python.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Hartmut Goebel - Oct. 8, 2016, 1:31 p.m.
Hi Danny,
> +    (synopsis
> +      "16 stemmer algorithms (15 + Poerter English stemmer)")
> +    (description
> +      "This package provides 16 stemmer algorithms (15 + Poerter English
> +stemmer) generated from Snowball algorithms.")

Sorry for not adding this comment the first time. For me this does not
help to understand what this package contains.

The projects readme says:

    Snowball stemming library collection for Python

    Original Snowball product created by Dr Martin Porter and Richard
    Boulton (Java porting). Original Snowball and my products are
    released under BSD license.


So perhaps this would be more expectational:

Snowball word stemming library collection for Python

This package provides 16 word stemmer algorithms generated from Snowball algorithms.
It includes the 15 original ones plus the Poerter English stemmer.
… some words about Snowball …

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cf86c71..d8cb7d1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10990,3 +10990,27 @@  with an associated set of resolve methods that know how to fetch data.")
 provide extendible implementations of common aspects of a cloud so that you can
 focus on building massively scalable web applications.")
     (license license:expat)))
+
+(define-public python-snowballstemmer
+  (package
+    (name "python-snowballstemmer")
+    (version "1.2.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "snowballstemmer" version))
+        (sha256
+          (base32
+            "0a0idq4y5frv7qsg2x62jd7rd272749xk4x99misf5rcifk2d7wi"))))
+    (build-system python-build-system)
+    (arguments
+     `(;; No tests exist
+       #:tests? #f))
+    (home-page
+      "https://github.com/shibukawa/snowball_py")
+    (synopsis
+      "16 stemmer algorithms (15 + Poerter English stemmer)")
+    (description
+      "This package provides 16 stemmer algorithms (15 + Poerter English
+stemmer) generated from Snowball algorithms.")
+    (license license:bsd-3)))