sharlatan pushed a commit to branch go-team
in repository guix.
commit 6ba795110d7921e6b41b037dbb5cb256fb094ce5
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Wed Feb 19 20:01:54 2025 +0000
gnu: Add go-github-com-nlpodyssey-spago.
* gnu/packages/golang-xyz.scm (go-github-com-nlpodyssey-spago): New
variable.
Change-Id: I0ba54606ff3f82d8aad34dd243094ef321b8a231
---
gnu/packages/golang-xyz.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f4608be048..57975523d4 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -97,6 +97,7 @@
#:use-module (gnu packages golang-web)
#:use-module (gnu packages libedit)
#:use-module (gnu packages linux)
+ #:use-module (gnu packages serialization)
#:use-module (gnu packages specifications)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages xorg))
@@ -12236,6 +12237,50 @@ list of sentences.")
pretty printed rendering in Golang.")
(license license:expat)))
+(define-public go-github-com-nlpodyssey-spago
+ (package
+ (name "go-github-com-nlpodyssey-spago")
+ (version "1.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nlpodyssey/spago")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0vxc7370a1ssb2p25xmrgxkg3jdrl6srsg3w8x7qiacgfdasn5cn"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/nlpodyssey/spago"))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list go-github-com-google-flatbuffers))
+ (home-page "https://github.com/nlpodyssey/spago")
+ (synopsis "ML/NLP library in Golang")
+ (description
+ "This package provides is a Machine Learning library written in pure Go
+designed to support relevant neural architectures in Natural Language
+Processing.
+
+It is self-contained, in that it uses its own lightweight computational
+graph both for training and inference, easy to understand from start to
+finish.
+
+It provides:
+@itemize
+@item automatic differentiation via dynamic define-by-run execution
+@item feed-forward layers (Linear, Highway, Convolution...)
+@item recurrent layers (LSTM, GRU, BiLSTM...)
+@item attention layers (Self-Attention, Multi-Head Attention...)
+@item gradient descent optimizers (Adam, RAdam, RMS-Prop, AdaGrad, SGD)
+@item gob compatible neural models for serialization
+@end itemize")
+ (license license:bsd-2)))
+
(define-public go-github-com-nsf-termbox-go
(package
(name "go-github-com-nsf-termbox-go")