From 2f8af151b21d835815ff37cbda16e408fad5f478 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sat, 28 Jul 2018 19:31:48 +0000 Subject: [PATCH] =?UTF-8?q?New=20port:=20textproc/py-simplebayes:=20Memory?= =?UTF-8?q?-based,=20optional-persistence=20na=C3=AFve=20bayesian=20text?= =?UTF-8?q?=20classifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- textproc/Makefile | 1 + textproc/py-simplebayes/Makefile | 22 ++++++++++++++++++++++ textproc/py-simplebayes/distinfo | 3 +++ textproc/py-simplebayes/pkg-descr | 4 ++++ 4 files changed, 30 insertions(+) create mode 100644 textproc/py-simplebayes/Makefile create mode 100644 textproc/py-simplebayes/distinfo create mode 100644 textproc/py-simplebayes/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index 575d1f52fd8c..b8784ef98e48 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1392,6 +1392,7 @@ SUBDIR += py-rxp SUBDIR += py-scour SUBDIR += py-sgrep + SUBDIR += py-simplebayes SUBDIR += py-snowballstemmer SUBDIR += py-sparqlwrapper SUBDIR += py-sphinx diff --git a/textproc/py-simplebayes/Makefile b/textproc/py-simplebayes/Makefile new file mode 100644 index 000000000000..ffd32f2c5dc7 --- /dev/null +++ b/textproc/py-simplebayes/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= simplebayes +PORTVERSION= 1.5.8 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Memory-based, optional-persistence naïve bayesian text classifier + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist distutils +NO_ARCH= yes + +post-extract: # https://github.com/hickeroar/simplebayes/issues/3 + @truncate -s 0 ${WRKSRC}/README.rst + +.include diff --git a/textproc/py-simplebayes/distinfo b/textproc/py-simplebayes/distinfo new file mode 100644 index 000000000000..7874dd8cc88d --- /dev/null +++ b/textproc/py-simplebayes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532798910 +SHA256 (simplebayes-1.5.8.tar.gz) = 363418c0ef185ac2158ebbd6d8afb45aa997254fcb809a73ed20a7d5dccf8b85 +SIZE (simplebayes-1.5.8.tar.gz) = 5972 diff --git a/textproc/py-simplebayes/pkg-descr b/textproc/py-simplebayes/pkg-descr new file mode 100644 index 000000000000..4021f108f96a --- /dev/null +++ b/textproc/py-simplebayes/pkg-descr @@ -0,0 +1,4 @@ +simplebayes allows to train the classifier, save the training data +in cache, and later use this data to classify text. + +WWW: https://github.com/hickeroar/simplebayes