Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2003 17:28:14 +0800 (CST)
From:      Cheng-Lung Sung <clsung@dragon2.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        clsung@tiger2.net
Subject:   ports/60723: new port: textproc/p5-Lingua-EN-Tagger 0.05
Message-ID:  <20031230092814.2E43B15630@mail.dragon2.net>
Resent-Message-ID: <200312300930.hBU9UD5A020314@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60723
>Category:       ports
>Synopsis:       new port: textproc/p5-Lingua-EN-Tagger 0.05
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 30 01:30:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Cheng-Lung Sung
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root@sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386

>Description:
- Part-of-speech tagger for English natural language processing
- Synopsis:
        # Create a parser object
	my $p = new Lingua::EN::Tagger;
	# Add part of speech tags to a text
	my $tagged_text = $p->add_tags( $text );
	# Get a list of all nouns and noun phrases with occurence counts
	my %word_list = $p->get_words( $text );
	# Get a readable version of the tagged text
	my $readable_text = $p->get_readable( $text );
>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Lingua-EN-Tagger
#	p5-Lingua-EN-Tagger/Makefile
#	p5-Lingua-EN-Tagger/distinfo
#	p5-Lingua-EN-Tagger/pkg-descr
#	p5-Lingua-EN-Tagger/pkg-plist
#
echo c - p5-Lingua-EN-Tagger
mkdir -p p5-Lingua-EN-Tagger > /dev/null 2>&1
echo x - p5-Lingua-EN-Tagger/Makefile
sed 's/^X//' >p5-Lingua-EN-Tagger/Makefile << 'END-of-p5-Lingua-EN-Tagger/Makefile'
X# New ports collection makefile for:    p5-Lingua-EN-Tagger
X# Date created:				Tue Dec 30 16:56:56 CST 2003
X# Whom:	      				Cheng-Lung Sung <clsung@dragon2.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Lingua-EN-Tagger
XPORTVERSION=	0.05
XCATEGORIES=	textproc perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Lingua
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	clsung@dragon2.net
XCOMMENT=	Part-of-speech tagger for English natural language processing
X
XBUILD_DEPENDS=	${SITE_PERL}/Lingua/Stem/En.pm:${PORTSDIR}/textproc/p5-Lingua-Stem \
X		${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
X		${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize  \
X		${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMAN3=		Lingua::EN::Tagger.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500601
XIGNORE=		This port requires perl 5.6.x or later. Install lang/perl5 then try again
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Lingua-EN-Tagger/Makefile
echo x - p5-Lingua-EN-Tagger/distinfo
sed 's/^X//' >p5-Lingua-EN-Tagger/distinfo << 'END-of-p5-Lingua-EN-Tagger/distinfo'
XMD5 (Lingua-EN-Tagger-0.05.tar.gz) = 4817e1974f98f1a6a485cfb472b50e89
END-of-p5-Lingua-EN-Tagger/distinfo
echo x - p5-Lingua-EN-Tagger/pkg-descr
sed 's/^X//' >p5-Lingua-EN-Tagger/pkg-descr << 'END-of-p5-Lingua-EN-Tagger/pkg-descr'
XThe module is a probability based, corpus-trained tagger that assigns 
XPOS tags to English text based on a lookup dictionary and probability 
Xvalues. The tagger determines appropriate tags based on conditional 
Xprobabilities - it looks at the preceding tag to figure out what the 
Xappropriate tag is for the current word. Unknown words will be classified 
Xaccording to word morphology or can be set to be treated as nouns or 
Xother parts of speech.
X
XThe tagger also recursively extracts as many nouns and noun phrases as 
Xit can, using a set of regular expressions.
X
XWWW:	http://search.cpan.org/dist/Lingua-EN-Tagger
X
XAuthor:	Aaron Coburn <acoburn@middlebury.edu>
END-of-p5-Lingua-EN-Tagger/pkg-descr
echo x - p5-Lingua-EN-Tagger/pkg-plist
sed 's/^X//' >p5-Lingua-EN-Tagger/pkg-plist << 'END-of-p5-Lingua-EN-Tagger/pkg-plist'
X%%SITE_PERL%%/Lingua/EN/Tagger.pm
X%%SITE_PERL%%/Lingua/EN/Tagger/tags.yml
X%%SITE_PERL%%/Lingua/EN/Tagger/pos_words.hash
X%%SITE_PERL%%/Lingua/EN/Tagger/pos_tags.hash
X%%SITE_PERL%%/Lingua/EN/Tagger/unknown.yml
X%%SITE_PERL%%/Lingua/EN/Tagger/words.yml
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Tagger/.packlist
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN/Tagger
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua/EN 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Lingua 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/Lingua/EN 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/Lingua 2>/dev/null || true
END-of-p5-Lingua-EN-Tagger/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031230092814.2E43B15630>