summaryrefslogtreecommitdiff
path: root/textproc/py-rouge-score
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-rouge-score')
-rw-r--r--textproc/py-rouge-score/Makefile26
-rw-r--r--textproc/py-rouge-score/distinfo3
-rw-r--r--textproc/py-rouge-score/pkg-descr7
3 files changed, 36 insertions, 0 deletions
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).