From nobody Tue Aug 06 00:13:50 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WdDLR0LZWz5SDd7; Tue, 06 Aug 2024 00:13:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WdDLQ5mgtz4NP1; Tue, 6 Aug 2024 00:13:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722903230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgjphcOU6+pwBaygzepsluZ6Ux2Dm6EWOWUr7HBlRdw=; b=dXa7PA/2OrFq2OM/rOQvzGQawOh9VJCQAbfra2KwN3VuyV6st5rq4A0ptUGRwYRU/L6vfc oiKRv+1VbxMpjZWXXpGz5vSy1Z3XeD0VqlRMfRHwhAuzNX2LnFQIpVszQDPGFIXD+gitIa CeS5/NztYvquMx1VEjouZ4ZEs1vPnC4pxXoi69OsdogioWSOw5QgBHI/dEpLyI6A2UCdhn tnCN/xhvgtwph0I+4YTK1ybkNN2oxv7vg6bML70OXgW+kwgfpPuzJQ79msFKtQc5iYP4K5 nkdDwwa74cQyLFQyr/Z1mYg5CbXeLqgKokz348VnhJ80YD7ulUSsOn6pPc038A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722903230; a=rsa-sha256; cv=none; b=KP4ijzmz4xN/a+dKG18CRfjOjUzcESrXO/THcik0vwkKkXM/hm7dJbQrmF3rDMBZGglnMa LZLbe/eQX/K7uacx8aBFlYHZeetBAyrM7BKKd2frXUPgq+koK1KU60qFg2Izlb5ffARxny 9087yo5KWuZNabKrjnlU5L9v1cyS9XC+KYMDjT03tyB7Bh56wTK916G7hF0dSjS5qM+qY/ oQpqut6q3LpxmLkPqrM1pBcD0Gp7a3/dRyEhYcfFasy+DnY/bbLWo+dUwpg4x14YN1G3nl X+9HKGwIM7cpzP1fX+sT9EewAuJ5jVCghfA1khdzZ7TxnAWPXC76Ok4a5FW2FQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722903230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgjphcOU6+pwBaygzepsluZ6Ux2Dm6EWOWUr7HBlRdw=; b=XMv/sEmbRugIS7Nyk9Fr/YRUp4BQh187ieU+fiLjkAgQ+SS6I7LlxWTgdRx+trQbxWohfK hqsIGK98bR5MmpphJj2IoiWtAQM7EhF5GP5rpK5fQKd8EWIpDVbzn2JQ0mUaHjLhJnSg5j aLX20St4ICiUTbuRnIbNd5POBEgDM8FbwB6DnC0HAVBFf5kebykrCcJh1zgtiLKsWgGMzz DDi7927cNcxyyLM879CtyK3NDLSPLjOElkxM4H7xQ++alCchZRggZ7CBqisPHJ/iCQ/80I EvLhmzdB7h3M264pvZd7QayojEp9JnRdf7sVquHTCGyaDgjZehVTEyBL4921Gw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WdDLQ5LCPzkrB; Tue, 6 Aug 2024 00:13:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4760DoQW012148; Tue, 6 Aug 2024 00:13:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4760DoeC012145; Tue, 6 Aug 2024 00:13:50 GMT (envelope-from git) Date: Tue, 6 Aug 2024 00:13:50 GMT Message-Id: <202408060013.4760DoeC012145@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 219e72a7c3cb - main - misc/py-jiwer: New port: Evaluate speech-to-text system with similarity measures List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 219e72a7c3cbe294bfbe96dabf8ae13641866b65 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=219e72a7c3cbe294bfbe96dabf8ae13641866b65 commit 219e72a7c3cbe294bfbe96dabf8ae13641866b65 Author: Yuri Victorovich AuthorDate: 2024-08-06 00:12:46 +0000 Commit: Yuri Victorovich CommitDate: 2024-08-06 00:13:44 +0000 misc/py-jiwer: New port: Evaluate speech-to-text system with similarity measures --- misc/Makefile | 1 + misc/py-jiwer/Makefile | 29 +++++++++++++++++++++++++++++ misc/py-jiwer/distinfo | 3 +++ misc/py-jiwer/pkg-descr | 12 ++++++++++++ 4 files changed, 45 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index f99169f04911..0b72d6dd0af7 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -439,6 +439,7 @@ SUBDIR += py-icoextract SUBDIR += py-instructor SUBDIR += py-ipyfastscape + SUBDIR += py-jiwer SUBDIR += py-kartograph SUBDIR += py-laspy SUBDIR += py-lazrs diff --git a/misc/py-jiwer/Makefile b/misc/py-jiwer/Makefile new file mode 100644 index 000000000000..afe34a2dd3f4 --- /dev/null +++ b/misc/py-jiwer/Makefile @@ -0,0 +1,29 @@ +PORTNAME= jiwer +#DISTVERSIONPREFIX= v +DISTVERSION= 3.0.4 # see https://github.com/jitsi/jiwer/issues/91 +CATEGORIES= misc python # machine-learning +MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Evaluate speech-to-text system with similarity measures +WWW= https://github.com/jitsi/jiwer + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=8.1.3:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rapidfuzz>=3:devel/py-rapidfuzz@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 concurrent autoplist #pytest + +#USE_GITHUB= yes +#GH_ACCOUNT= jitsi + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +.include diff --git a/misc/py-jiwer/distinfo b/misc/py-jiwer/distinfo new file mode 100644 index 000000000000..70736cf03395 --- /dev/null +++ b/misc/py-jiwer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722887112 +SHA256 (jiwer-3.0.4.tar.gz) = 2438acdc7ca22128fcab4be60db595809d2b5e73785b736de36dc3281a2a6ae8 +SIZE (jiwer-3.0.4.tar.gz) = 17515 diff --git a/misc/py-jiwer/pkg-descr b/misc/py-jiwer/pkg-descr new file mode 100644 index 000000000000..12c8bc7601d5 --- /dev/null +++ b/misc/py-jiwer/pkg-descr @@ -0,0 +1,12 @@ +JiWER is a simple and fast python package to evaluate an automatic speech +recognition system. It supports the following measures: +* word error rate (WER) +* match error rate (MER) +* word information lost (WIL) +* word information preserved (WIP) +* character error rate (CER) + +These measures are computed with the use of the minimum-edit distance between +one or more reference and hypothesis sentences. The minimum-edit distance is +calculated using RapidFuzz, which uses C++ under the hood, and is therefore +faster than a pure python implementation.