aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfoxfair <foxfair@FreeBSD.org>2003-10-28 23:26:49 +0800
committerfoxfair <foxfair@FreeBSD.org>2003-10-28 23:26:49 +0800
commit85a3c435c1175c102b4ec1d4c9f40f482dd37b10 (patch)
treec29e80be994b1d3908fe6d77f8f1b3c250602ad4
parent9a22c33feed3a0f14e0aaee7e5cb08e31742d027 (diff)
downloadfreebsd-ports-gnome-85a3c435c1175c102b4ec1d4c9f40f482dd37b10.tar.gz
freebsd-ports-gnome-85a3c435c1175c102b4ec1d4c9f40f482dd37b10.tar.zst
freebsd-ports-gnome-85a3c435c1175c102b4ec1d4c9f40f482dd37b10.zip
Add p5-Algorithm-NaiveBayes 0.02,
perl class performing Bayesian prediction of categories. PR: 58527 Submitted by: clsung@dragon2.net
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Algorithm-NaiveBayes/Makefile22
-rw-r--r--devel/p5-Algorithm-NaiveBayes/distinfo1
-rw-r--r--devel/p5-Algorithm-NaiveBayes/pkg-descr12
-rw-r--r--devel/p5-Algorithm-NaiveBayes/pkg-plist6
5 files changed, 42 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f40ec90071bd..7a3de5591251 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -496,6 +496,7 @@
SUBDIR += p5-Algorithm-Evolutionary
SUBDIR += p5-Algorithm-MDiff
SUBDIR += p5-Algorithm-MarkovChain
+ SUBDIR += p5-Algorithm-NaiveBayes
SUBDIR += p5-Algorithm-Numerical-Shuffle
SUBDIR += p5-Algorithm-Permute
SUBDIR += p5-Alias
diff --git a/devel/p5-Algorithm-NaiveBayes/Makefile b/devel/p5-Algorithm-NaiveBayes/Makefile
new file mode 100644
index 000000000000..787ad57747e7
--- /dev/null
+++ b/devel/p5-Algorithm-NaiveBayes/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: Algorithm::NaiveBayes
+# Date created: Oct 25 2003
+# Whom: clsung@dragon2.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= Algorithm-NaiveBayes
+PORTVERSION= 0.02
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Algorithm
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= clsung@dragon2.net
+COMMENT= Perl class performing Bayesian prediction of categories
+
+PERL_CONFIGURE= yes
+
+MAN3= Algorithm::NaiveBayes.3
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Algorithm-NaiveBayes/distinfo b/devel/p5-Algorithm-NaiveBayes/distinfo
new file mode 100644
index 000000000000..c49c4ba8f18a
--- /dev/null
+++ b/devel/p5-Algorithm-NaiveBayes/distinfo
@@ -0,0 +1 @@
+MD5 (Algorithm-NaiveBayes-0.02.tar.gz) = 3477830a254449a26c5eb3e4c85b0054
diff --git a/devel/p5-Algorithm-NaiveBayes/pkg-descr b/devel/p5-Algorithm-NaiveBayes/pkg-descr
new file mode 100644
index 000000000000..c09f6fe38e7d
--- /dev/null
+++ b/devel/p5-Algorithm-NaiveBayes/pkg-descr
@@ -0,0 +1,12 @@
+This module implements the classic "Naive Bayes" machine learning algorithm.
+It is a well-studied probabilistic algorithm often used in automatic text
+categorization. Compared to other algorithms (kNN, SVM, Decision Trees),
+it's pretty fast and reasonably competitive in the quality of its results.
+
+A paper by Fabrizio Sebastiani provides a really good introduction to
+text categorization:
+http://faure.iei.pi.cnr.it/~fabrizio/Publications/ACMCS02.pdf
+
+WWW: http://search.cpan.org/dist/Algorithm-NaiveBayes/
+
+Author: Ken Williams <ken@mathforum.org>
diff --git a/devel/p5-Algorithm-NaiveBayes/pkg-plist b/devel/p5-Algorithm-NaiveBayes/pkg-plist
new file mode 100644
index 000000000000..51df9bb6afe8
--- /dev/null
+++ b/devel/p5-Algorithm-NaiveBayes/pkg-plist
@@ -0,0 +1,6 @@
+%%SITE_PERL%%/Algorithm/NaiveBayes.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/NaiveBayes/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm/NaiveBayes
+@dirrm %%SITE_PERL%%/Algorithm
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Algorithm 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Algorithm 2>/dev/null || true