git: dab754b5cd69 - main - textproc/py-rouge-score: New port: Package for text analysis and normalization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Aug 2025 15:40:40 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=dab754b5cd69ac9456b53032b1b1487cd93d193a
commit dab754b5cd69ac9456b53032b1b1487cd93d193a
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-08-18 15:40:30 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-08-18 15:40:38 +0000
textproc/py-rouge-score: New port: Package for text analysis and normalization
---
textproc/Makefile | 1 +
textproc/py-rouge-score/Makefile | 26 ++++++++++++++++++++++++++
textproc/py-rouge-score/distinfo | 3 +++
textproc/py-rouge-score/pkg-descr | 7 +++++++
4 files changed, 37 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index c82f121c22ba..9b267892ae78 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1595,6 +1595,7 @@
SUBDIR += py-rich-rst
SUBDIR += py-rnc2rng
SUBDIR += py-roman-numerals-py
+ SUBDIR += py-rouge-score
SUBDIR += py-rst2ansi
SUBDIR += py-rst2html5
SUBDIR += py-sacremoses
diff --git a/textproc/py-rouge-score/Makefile b/textproc/py-rouge-score/Makefile
new file mode 100644
index 000000000000..24bd3bd8b072
--- /dev/null
+++ b/textproc/py-rouge-score/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= rouge-score
+DISTVERSION= 0.1.2
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Package for text analysis and normalization
+WWW= https://github.com/google-research/google-research/tree/master/rouge
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}absl-py>=0:devel/py-absl-py@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}nltk>=0:textproc/py-nltk@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.14.0:devel/py-six@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist pytest
+
+NO_ARCH= yes
+
+# tests fail because of missing testdata folder
+
+.include <bsd.port.mk>
diff --git a/textproc/py-rouge-score/distinfo b/textproc/py-rouge-score/distinfo
new file mode 100644
index 000000000000..80a9dd6229dd
--- /dev/null
+++ b/textproc/py-rouge-score/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1755530589
+SHA256 (rouge_score-0.1.2.tar.gz) = c7d4da2683e68c9abf0135ef915d63a46643666f848e558a1b9f7ead17ff0f04
+SIZE (rouge_score-0.1.2.tar.gz) = 17400
diff --git a/textproc/py-rouge-score/pkg-descr b/textproc/py-rouge-score/pkg-descr
new file mode 100644
index 000000000000..6a4548eefd84
--- /dev/null
+++ b/textproc/py-rouge-score/pkg-descr
@@ -0,0 +1,7 @@
+This package implements:
+* ROUGE-N (N-gram) scoring
+* ROUGE-L (Longest Common Subsequence) scoring
+* Text normalization
+* Bootstrap resampling for confidence interval calculation
+* Optional Porter stemming to remove plurals and word suffixes
+ such as (ing, ion, ment).