1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add dbacl 1.4, digramic Bayesian classifier.

dbacl is a digramic Bayesian text classifier. Given some text,
it calculates the posterior probabilities that the input resembles
one of any number of previously learned document collections.
It can be used to sort incoming email into arbitrary categories
such as spam, work, and play, or simply to distinguish an English text
from a French text. It fully supports international character sets,
and uses sophisticated statistical models based on the
Maximum Entropy Principle.

Author:	Laird A. Breyer <laird@lbreyer.com>
WWW:	http://dbacl.sourceforge.net/

PR:		58733
Submitted by:	Cheng-Lung Sung <clsung@dragon2.net>
This commit is contained in:
Sergei Kolobov 2003-10-31 12:46:33 +00:00
parent ffa94017d6
commit a3a9120155
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92709
5 changed files with 78 additions and 0 deletions

View File

@ -43,6 +43,7 @@
SUBDIR += cy-aspell
SUBDIR += da-aspell
SUBDIR += dadadodo
SUBDIR += dbacl
SUBDIR += dico
SUBDIR += dict
SUBDIR += dictfmt

40
textproc/dbacl/Makefile Normal file
View File

@ -0,0 +1,40 @@
# New ports collection makefile for: dbacl
# Date created: 2003-10-30
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD$
#
PORTNAME= dbacl
PORTVERSION= 1.4
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= clsung@dragon2.net
COMMENT= Digramic Bayesian classifier
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
PROGRAMS= bayesol dbacl mailinspect
SCRIPTS= mailcross
MAN1= bayesol.1 dbacl.1 mailcross.1 mailinspect.1
DOCS= AUTHORS ChangeLog README dbacl.ps email.html tutorial.html
EXAMPLES= sample*.txt japanese.txt example*.risk toy.risk prop.pl
do-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && \
${INSTALL_PROGRAM} ${PROGRAMS} ${PREFIX}/bin && \
${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/bin && \
${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1 && \
${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>

1
textproc/dbacl/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (dbacl-1.4.tar.gz) = 4505b6c1e16f3abf2613a5281240dab1

11
textproc/dbacl/pkg-descr Normal file
View File

@ -0,0 +1,11 @@
dbacl is a digramic Bayesian text classifier. Given some text,
it calculates the posterior probabilities that the input resembles
one of any number of previously learned document collections.
It can be used to sort incoming email into arbitrary categories
such as spam, work, and play, or simply to distinguish an English text
from a French text. It fully supports international character sets,
and uses sophisticated statistical models based on the
Maximum Entropy Principle.
Author: Laird A. Breyer <laird@lbreyer.com>
WWW: http://dbacl.sourceforge.net/

25
textproc/dbacl/pkg-plist Normal file
View File

@ -0,0 +1,25 @@
@comment $FreeBSD$
bin/bayesol
bin/dbacl
bin/mailcross
bin/mailinspect
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/dbacl.ps
%%PORTDOCS%%%%DOCSDIR%%/email.html
%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/example1.risk
%%EXAMPLESDIR%%/example2.risk
%%EXAMPLESDIR%%/example3.risk
%%EXAMPLESDIR%%/japanese.txt
%%EXAMPLESDIR%%/prop.pl
%%EXAMPLESDIR%%/sample1.txt
%%EXAMPLESDIR%%/sample2.txt
%%EXAMPLESDIR%%/sample3.txt
%%EXAMPLESDIR%%/sample4.txt
%%EXAMPLESDIR%%/sample5.txt
%%EXAMPLESDIR%%/sample6.txt
%%EXAMPLESDIR%%/toy.risk
@dirrm %%EXAMPLESDIR%%