[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
159/244: gnu: Add sentencepiece.
From: |
guix-commits |
Subject: |
159/244: gnu: Add sentencepiece. |
Date: |
Wed, 12 Apr 2023 08:49:13 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit 70510eb04712e995ae904c9299fecd166f5138ff
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Sat Mar 25 16:32:18 2023 +0100
gnu: Add sentencepiece.
* gnu/packages/machine-learning.scm (sentencepiece): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/machine-learning.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index 37d4ef78ad..072fb1ab15 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -583,6 +583,34 @@ optimizing, and searching weighted finite-state
transducers (FSTs).")
'("--enable-shared" "--enable-far" "--enable-ngram-fsts"
"--enable-lookahead-fsts" "--with-pic" "--disable-bin")))))
+(define-public sentencepiece
+ (package
+ (name "sentencepiece")
+ (version "0.1.97")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/sentencepiece")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1kzfkp2pk0vabyw3wmkh16h11chzq63mzc20ddhsag5fp6s91ajg"))))
+ (build-system cmake-build-system)
+ (arguments (list #:tests? #f)) ;no tests
+ (native-inputs (list gperftools))
+ (home-page "https://github.com/google/sentencepiece")
+ (synopsis "Unsupervised tokenizer for Neural Network-based text
generation")
+ (description
+ "SentencePiece is an unsupervised text tokenizer and detokenizer mainly
+for Neural Network-based text generation systems where the vocabulary size is
+predetermined prior to the neural model training. SentencePiece implements
+subword units---e.g., byte-pair-encoding (BPE) and unigram language
+model---with the extension of direct training from raw sentences.
+SentencePiece allows us to make a purely end-to-end system that does not
+depend on language-specific pre- or post-processing.")
+ (license license:asl2.0)))
+
(define-public shogun
(package
(name "shogun")
- 200/244: gnu: thunar-archive-plugin: Update to 0.5.1., (continued)
- 200/244: gnu: thunar-archive-plugin: Update to 0.5.1., guix-commits, 2023/04/12
- 202/244: gnu: xfce4-notifyd: Update to 0.8.2., guix-commits, 2023/04/12
- 204/244: gnu: xfce4-screensaver: Update to 4.18.1., guix-commits, 2023/04/12
- 207/244: gnu: emacs-treemacs: Update to 3.1., guix-commits, 2023/04/12
- 201/244: gnu: parole: Update to 4.18.0., guix-commits, 2023/04/12
- 233/244: gnu: restinio: Update to 0.6.18-0.eda471e and enable tests., guix-commits, 2023/04/12
- 210/244: gnu: emacs-citar-org-roam: Update to 0.5.1., guix-commits, 2023/04/12
- 230/244: gnu: libconfig: Replace config script helpers., guix-commits, 2023/04/12
- 226/244: gnu: cups-minimal: Fix cross-building to riscv64-linux., guix-commits, 2023/04/12
- 158/244: gnu: Remove abandoned spotify-tui package., guix-commits, 2023/04/12
- 159/244: gnu: Add sentencepiece.,
guix-commits <=
- 192/244: gnu: fcitx5-configtool: Update to 5.0.17., guix-commits, 2023/04/12
- 180/244: import: opam: opam->guix-package: Fix default repo argument., guix-commits, 2023/04/12
- 153/244: gnu: Add zix., guix-commits, 2023/04/12
- 154/244: gnu: libaudec: Update to 0.3.4., guix-commits, 2023/04/12
- 235/244: Revert "gnu: opendht: Update to 2.5.2.", guix-commits, 2023/04/12
- 168/244: gnu: scintilla: Update to 5.3.4., guix-commits, 2023/04/12
- 182/244: gnu: gerbil: Update to 0.17.0., guix-commits, 2023/04/12
- 209/244: gnu: emacs-flycheck-guile: Update to 0.5., guix-commits, 2023/04/12
- 172/244: gnu: gallery-dl: Update to 1.25.1., guix-commits, 2023/04/12
- 194/244: gnu: libxfce4ui: Update to 4.18.3., guix-commits, 2023/04/12