gnu: Add python-sentencepiece.

* gnu/packages/machine-learning.scm (python-sentencepiece): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Nicolas Graves 2023-03-25 16:32:19 +01:00 committed by Nicolas Goaziou
parent 3ede522d3d
commit b818667188
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -611,6 +611,25 @@ (define-public sentencepiece
depend on language-specific pre- or post-processing.")
(license license:asl2.0)))
(define-public python-sentencepiece
(package
(name "python-sentencepiece")
(version "0.1.97")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sentencepiece" version))
(sha256
(base32 "0v0z9ryl66432zajp099bcbnwkkldzlpjvgnjv9bq2vi19g300f9"))))
(build-system python-build-system)
(native-inputs (list pkg-config))
(propagated-inputs (list sentencepiece))
(home-page "https://github.com/google/sentencepiece")
(synopsis "SentencePiece python wrapper")
(description "This package provides a Python wrapper for the SentencePiece
unsupervised text tokenizer.")
(license license:asl2.0)))
(define-public shogun
(package
(name "shogun")