From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EI60L++F3GYeagAAe85BDQ:P1 (envelope-from ) for ; Sat, 07 Sep 2024 16:57:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EI60L++F3GYeagAAe85BDQ (envelope-from ) for ; Sat, 07 Sep 2024 18:57:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=YPr9zxdQ; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=AzbXgApt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725728239; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=u5kmPC4z/BMZ8b82XXWqBr3nPgBryvUwFgRrL180Dp0=; b=pgpM7/jl/WkRWxK9kBcKANrVv8s9ZQNJoPPjs0ygo0vmGAlR4hMdYC5xn+ann/wEPGAOW/ afjItYxmax8ZIzli5GZQANYqoF8gzfDpU5yEZWIC6mcixx2/qR48ebnlXkKuBru1Ihljf6 6WqtEOrmlJTKfM2JsR3cNJO66BBy/2c8vFsKj9uEv9TDrmYjsa1fX0PmJOzToNggyKqMFN HkuAoHI8mbci7l3I0Y+vHRGFom7fNkNUzrxl3dVe5RXxUOCrTUW5r2cTBEkMvFa279gvG1 gOkbci4fPtwmJdeE5eRVy0PZYBU20y7ogyTpdGIfoVW28TfQ0SKk1HJ5msgdFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725728239; a=rsa-sha256; cv=none; b=OH0GzHdY/4/mt7kL8M2zC7hdawOZZzw+Q/eb72DGDTLVaQAt5zREsluQ5e0qKra0kP0heN bXtvYBNm2h1SQCJSYnm24EY36M0hRU5CyNv9t3ZGQwYP9l2Jc1SB+VLvy4o/D2vBdmzHAU L7fjIJJgh2zhP3nFufhAkp01eSWAu0jPCBx9khctX1CjAEQrq7KboY7UgCylZNDWhN/CJ7 umqBrGkRTrj8S9qdHdbwwOE6V7/znTlnRJqTf61TKZyiNjboOCx0X0lpagh1SDmWtWwqkm B9nqWQeHoFkRX57Cc2FnbzDDIT5P059kXh/XxlsAPg/avHKqGETf8yf3ost6iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=YPr9zxdQ; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=AzbXgApt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F15381726 for ; Sat, 7 Sep 2024 18:57:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smykF-0000ti-St; Sat, 07 Sep 2024 12:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smykC-0000s8-LY for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smykC-0001bx-C0 for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=u5kmPC4z/BMZ8b82XXWqBr3nPgBryvUwFgRrL180Dp0=; b=YPr9zxdQ2rtZXJzmyeGt5afF92VmkuomzmU99jxgcbTbX0qXSCKKch75OgH6AepQtFfONx1CdUFW+/jXPnbosPSUOHsq1xymfGTyuOIGMeFw11SILB5vpp04dWZp4QwglW2w3X9c4xaHfN/s7kwP4QhYSI9RXM0oJBn+WhJKrYvCsO8i8tXzPspv4AuBYjxZlw4lqgKso31OFPj2NwxDslXCcZVmOwK/ve5gGzNhFTHWUskKWJ2o5zlaMY20Uluxdo0pvjkSyHS9CKMYwy6sSTnuRnpc0G5qLRac0SpMTiqAyTRm97GfWkK1qVByrIM2AhK+eJ0lhSUw8vjgWiAfIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smykD-0007wS-Ap for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73106] [PATCH 08/10] gnu: Add rust-tokenizers. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Sep 2024 16:57:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73106@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 73106-submit@debbugs.gnu.org id=B73106.172572820530431 (code B ref 73106); Sat, 07 Sep 2024 16:57:05 +0000 Received: (at 73106) by debbugs.gnu.org; 7 Sep 2024 16:56:45 +0000 Received: from localhost ([127.0.0.1]:57451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjs-0007ud-CM for submit@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:44 -0400 Received: from 6.mo550.mail-out.ovh.net ([46.105.43.205]:55519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjo-0007td-13 for 73106@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:40 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.140.54]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4X1K4j2kh2z1PNs for <73106@debbugs.gnu.org>; Sat, 7 Sep 2024 16:56:37 +0000 (UTC) Received: from ghost-submission-55b549bf7b-hc4cq (unknown [10.110.168.145]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 042FF1FDF0; Sat, 7 Sep 2024 16:56:36 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-55b549bf7b-hc4cq with ESMTPSA id h9ecMcSF3GZNFwAAKgHleA (envelope-from ); Sat, 07 Sep 2024 16:56:36 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Sat, 7 Sep 2024 18:56:14 +0200 Message-ID: <20240907165626.22651-8-ngraves@ngraves.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240907165626.22651-1-ngraves@ngraves.fr> References: <20240907165626.22651-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 9639110579352363746 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudeifedguddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpedvheelieffheetvdelhfffffejfefgudfhteekveehieetudeiudfgkeeutdehjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejfedutdeiseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=u5kmPC4z/BMZ8b82XXWqBr3nPgBryvUwFgRrL180Dp0=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1725728197; v=1; b=AzbXgAptbSi/CbrLrzVmGjL4bSakbdWKqyRnyqAlA7ww5KZVtFi8i1umhDdf0F5ImbV3w+Lq oyayFkWtbMXR/KEw4JgpFu4WLhS2nFzaPwFbcYJxxUTfq9wIt+bzhtyWGrjKeOWLfPNz20xsYet g6/phTO+gQjaFKPBwbBvoRAYTcByJrWjxu73+0QmDTq9OQMRblk0in0LcrAIY3hVNFKOaxYf4KK WRvfDYwDTOcTG/RBk4z+hgPmiKN26LPmvQIM6ZWe22LUNITs3cROE6fapLkOsfJIeQYpTXppCCS jBqeUGqd1kom3pbhE4BtRbXWI4Ks/009jcA1OkauDeoAA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8F15381726 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.49 X-Spam-Score: -6.49 X-TUID: 0CBxZEhkcNF4 * gnu/packages/machine-learning.scm (rust-tokenizers): New variable. Change-Id: I3189a2d826f072f65ad053d77eb39be39775f1c2 --- gnu/packages/machine-learning.scm | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 27d7f0526b..3b601f6c91 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5675,6 +5675,66 @@ (define-public rust-hf-hub-0.3 python package, but only implements a smaller subset of functions.") (license license:asl2.0))) +(define-public rust-tokenizers + (package + (name "rust-tokenizers") + (version "0.19.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "tokenizers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zg6ffpllygijb5bh227m9p4lrhf0pjkysky68kddwrsvp8zl075")) + (modules '((guix build utils))) + (snippet + #~(substitute* "Cargo.toml" + (("0.1.12") ; rust-monostate requires a rust-syn-2 update + "0.1.11") + (("version = \"6.4\"") ; rust-onig + "version = \"6.1.1\""))))) + (build-system cargo-build-system) + (arguments + (list + #:tests? #f ; tests are relying on missing data. + #:cargo-inputs + `(("rust-aho-corasick" ,rust-aho-corasick-1) + ("rust-derive-builder" ,rust-derive-builder-0.20) + ("rust-esaxx-rs" ,rust-esaxx-rs-0.1) + ("rust-fancy-regex" ,rust-fancy-regex-0.13) + ("rust-getrandom" ,rust-getrandom-0.2) + ("rust-hf-hub" ,rust-hf-hub-0.3) + ("rust-indicatif" ,rust-indicatif-0.17) + ("rust-itertools" ,rust-itertools-0.12) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-log" ,rust-log-0.4) + ("rust-macro-rules-attribute" ,rust-macro-rules-attribute-0.2) + ("rust-monostate" ,rust-monostate-0.1) + ("rust-onig" ,rust-onig-6) + ("rust-paste" ,rust-paste-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rayon" ,rust-rayon-1) + ("rust-rayon-cond" ,rust-rayon-cond-0.3) + ("rust-regex" ,rust-regex-1) + ("rust-regex-syntax" ,rust-regex-syntax-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-spm-precompiled" ,rust-spm-precompiled-0.1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-unicode-normalization-alignments" ,rust-unicode-normalization-alignments-0.1) + ("rust-unicode-segmentation" ,rust-unicode-segmentation-1) + ("rust-unicode-categories" ,rust-unicode-categories-0.1)) + #:cargo-development-inputs + `(("rust-assert-approx-eq" ,rust-assert-approx-eq-1) + ("rust-criterion" ,rust-criterion-0.5) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/huggingface/tokenizers") + (synopsis "Implementation of various popular tokenizers") + (description + "This package provides a Rust implementation of today's most used +tokenizers, with a focus on performances and versatility.") + (license license:asl2.0))) + (define-public python-hmmlearn (package (name "python-hmmlearn") -- 2.45.2