textproc/py-wordninja: add new port

Probabilistically split concatenated words.

PR:	282840
This commit is contained in:
Matthew Wener 2024-11-21 16:10:11 +01:00 committed by Dries Michiels
parent b52db326a6
commit 37e168201c
4 changed files with 35 additions and 0 deletions

View file

@ -1700,6 +1700,7 @@
SUBDIR += py-whoosh
SUBDIR += py-wordcloud
SUBDIR += py-wordnet
SUBDIR += py-wordninja
SUBDIR += py-wstools
SUBDIR += py-wtf-peewee
SUBDIR += py-wtforms

View file

@ -0,0 +1,29 @@
PORTNAME= wordninja
PORTVERSION= 2.0.0
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= matthew@wener.org
COMMENT= Probabilistically split concatenated words
WWW= https://github.com/keredson/wordninja
LICENSE= MIT
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
PORTDOCS= PKG-INFO
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1724809518
SHA256 (wordninja-2.0.0.tar.gz) = 1a1cc7ec146ad19d6f71941ee82aef3d31221700f0d8bf844136cf8df79d281a
SIZE (wordninja-2.0.0.tar.gz) = 541572

View file

@ -0,0 +1,2 @@
Probabilistically split concatenated words using NLP
based on English Wikipedia uni-gram frequencies.