diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-08-18 15:40:30 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-08-18 15:40:38 +0000 |
| commit | dab754b5cd69ac9456b53032b1b1487cd93d193a (patch) | |
| tree | a642cff8de1ca85cdc18c9238a895eed06a04c00 | |
| parent | 2a388bd3191758f2b6c08558f35b6fb4798de598 (diff) | |
textproc/py-rouge-score: New port: Package for text analysis and normalization
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-rouge-score/Makefile | 26 | ||||
| -rw-r--r-- | textproc/py-rouge-score/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-rouge-score/pkg-descr | 7 |
4 files changed, 37 insertions, 0 deletions
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). |
