diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-08-17 18:28:57 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-08-17 20:12:02 +0000 |
| commit | 7858ef1929976ab12531f9d56410220aea510e89 (patch) | |
| tree | a64b8323dfe3922d29af0716fe744129afd6ca07 | |
| parent | 3c1ef46cc38abaa16b67aaff5cea582b26ff76c2 (diff) | |
textproc/py-sacremoses: New port: Python port of Moses tokenizer, truecaser and normalizer
| -rw-r--r-- | textproc/Makefile | 1 | ||||
| -rw-r--r-- | textproc/py-sacremoses/Makefile | 29 | ||||
| -rw-r--r-- | textproc/py-sacremoses/distinfo | 3 | ||||
| -rw-r--r-- | textproc/py-sacremoses/pkg-descr | 1 |
4 files changed, 34 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 3da46ead85c6..f996ea458bcc 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1596,6 +1596,7 @@ SUBDIR += py-roman-numerals-py SUBDIR += py-rst2ansi SUBDIR += py-rst2html5 + SUBDIR += py-sacremoses SUBDIR += py-scour SUBDIR += py-segno SUBDIR += py-sense2vec diff --git a/textproc/py-sacremoses/Makefile b/textproc/py-sacremoses/Makefile new file mode 100644 index 000000000000..56dba0f3f173 --- /dev/null +++ b/textproc/py-sacremoses/Makefile @@ -0,0 +1,29 @@ +PORTNAME= sacremoses +DISTVERSION= 0.1.1 +CATEGORIES= textproc python # machine-learning +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python port of Moses tokenizer, truecaser and normalizer +WWW= https://github.com/hplt-project/sacremoses + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=7.1.2:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}joblib>=1.1.0:devel/py-joblib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}regex>=2020.1.8:textproc/py-regex@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=4.64.0:misc/py-tqdm@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= hplt-project + +NO_ARCH= yes + +# tests as of 0.1.1: 1 failed, 35 passed, 1 skipped in 15.70s, see https://github.com/hplt-project/sacremoses/issues/153 + +.include <bsd.port.mk> diff --git a/textproc/py-sacremoses/distinfo b/textproc/py-sacremoses/distinfo new file mode 100644 index 000000000000..b06ad3a3bf45 --- /dev/null +++ b/textproc/py-sacremoses/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1755454968 +SHA256 (hplt-project-sacremoses-0.1.1_GH0.tar.gz) = 139faad4800a5da04498e4b5c297a5a8e1c958877b59090715d8a3f90e0b9b76 +SIZE (hplt-project-sacremoses-0.1.1_GH0.tar.gz) = 889511 diff --git a/textproc/py-sacremoses/pkg-descr b/textproc/py-sacremoses/pkg-descr new file mode 100644 index 000000000000..b2027d4eba1c --- /dev/null +++ b/textproc/py-sacremoses/pkg-descr @@ -0,0 +1 @@ +sacremoses is a Python port of Moses tokenizer, truecaser and normalizer. |
