View | Details | Raw Unified | Return to bug 58552
Collapse All | Expand All

(-)./p5-WordNet-Similarity/Makefile (-5 / +8 lines)
Lines 6-21 Link Here
6
#
6
#
7
7
8
PORTNAME=	WordNet-Similarity
8
PORTNAME=	WordNet-Similarity
9
PORTVERSION=	0.05
9
PORTVERSION=	0.06
10
CATEGORIES=	textproc perl5
10
CATEGORIES=	textproc perl5
11
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
11
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
12
MASTER_SITE_SUBDIR=	WordNet
12
MASTER_SITE_SUBDIR=	WordNet
13
PKGNAMEPREFIX=	p5-
13
PKGNAMEPREFIX=	p5-
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	clsung@dragon2.net
16
COMMENT=	Modules and a CLI to determine semantic relatedness using the WordNet database
16
COMMENT=	Modules/CLI to determine semantic relatedness using the WordNet
17
17
18
BUILD_DEPENDS=	${SITE_PERL}/WordNet/QueryData.pm:${PORTSDIR}/textproc/p5-WordNet-QueryData
18
BUILD_DEPENDS=	${SITE_PERL}/WordNet/QueryData.pm:${PORTSDIR}/textproc/p5-WordNet-QueryData \
19
		${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
19
RUN_DEPENDS=	${BUILD_DEPENDS}
20
RUN_DEPENDS=	${BUILD_DEPENDS}
20
21
21
WNHOME?=	${LOCALBASE}/share/WordNet-1.7.1
22
WNHOME?=	${LOCALBASE}/share/WordNet-1.7.1
Lines 28-34 Link Here
28
		WordNet::Similarity::hso.3 WordNet::Similarity::vector.3 \
29
		WordNet::Similarity::hso.3 WordNet::Similarity::vector.3 \
29
		WordNet::Similarity::random.3 WordNet::Similarity::res.3 \
30
		WordNet::Similarity::random.3 WordNet::Similarity::res.3 \
30
		WordNet::Similarity::lesk.3 WordNet::Similarity::edge.3 \
31
		WordNet::Similarity::lesk.3 WordNet::Similarity::edge.3 \
31
		WordNet::Similarity::lin.3 WordNet::Similarity::lch.3
32
		WordNet::Similarity::lin.3 WordNet::Similarity::lch.3 \
33
		WordNet::Similarity::wup.3
34
32
post-patch:
35
post-patch:
33
	@${REINPLACE_CMD} -e  \
36
	@${REINPLACE_CMD} -e  \
34
		'/wnUnixPath/s|/usr/local/WordNet-1.7.1|${WNHOME}|; \
37
		'/wnUnixPath/s|/usr/local/WordNet-1.7.1|${WNHOME}|; \
(-)./p5-WordNet-Similarity/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (WordNet-Similarity-0.05.tar.gz) = dc82c6c971a480f3a082f6d9f1233d4a
1
MD5 (WordNet-Similarity-0.06.tar.gz) = fffa8d18a5fe9e361825beca852fbbcd
(-)./p5-WordNet-Similarity/pkg-descr (-22 / +18 lines)
Lines 1-27 Link Here
1
From the README:
1
This package consists of Perl modules along with supporting Perl programs
2
2
that implement the semantic relatedness measures described by Leacock
3
This package consists of Perl modules along with supporting Perl programs that
3
Chodorow (1998), Jiang Conrath (1997), Resnik (1995), Lin (1998), Hirst St
4
implement the semantic relatedness measures described by Leacock Chodorow
4
Onge (1998), Wu Palmer (1994), the adapted gloss overlap measure by 
5
(1998), Jiang Conrath (1997), Resnik (1995), Lin (1998), Hirst St Onge (1998)
5
Banerjee and Pedersen (2002), and a measure based on context vectors
6
and the adapted gloss overlap measure by Banerjee and Pedersen (2002). The Perl
6
by Patwardhan (2003). The details of the Vector measure are described in the
7
modules are designed as object classes with methods that take as input two word
7
Master's thesis work done by Patwardhan (2003) at the University of Minnesota
8
senses. The semantic relatedness of these word senses is returned by these
8
Duluth. The  Perl modules are designed as objects with methods that take as
9
methods. A quantitative measure of the degree to which two word senses are
9
input two word senses. The semantic relatedness of these word senses is
10
related has wide ranging applications in numerous areas, such as word sense
10
returned by these methods. A quantitative measure of the degree to which two
11
disambiguation, information retrieval, etc. For example, in order to determine
11
word senses are related has wide ranging applications in numerous areas, such
12
which sense of a given word is being used in a particular context, the sense
12
as word sense disambiguation, information retrieval, etc. For example, in
13
having the highest relatedness with its context word senses is most likely to
13
order to determine which sense of a given word is being used in a particular
14
be the sense being used. Similarly, in information retrieval, retrieving
14
context, the sense having the highest relatedness with its context word
15
documents containing highly related concepts are more likely to have higher
15
senses is most likely to be the sense being used. Similarly, in information
16
precision and recall values.
16
retrieval, retrieving documents containing highly related concepts are more
17
likely to have higher precision and recall values.
17
18
18
A command line interface to these modules is also present in the package. The
19
A command line interface to these modules is also present in the package. The
19
simple, user-friendly interface returns the relatedness measure of two given
20
simple, user-friendly interface returns the relatedness measure of two given
20
words. A number of switches and options have been provided to modify the output
21
words. 
21
and enhance it with trace information and other useful output. Details of the
22
usage are provided in other sections of this README. Supporting utilities for
23
generating information content files from various corpora are also available in
24
the package. The information content files are required by three of the
25
measures for computing the relatedness of concepts.
26
22
27
WWW: http://search.cpan.org/dist/WordNet-Similarity/
23
WWW: http://search.cpan.org/dist/WordNet-Similarity/
(-)./p5-WordNet-Similarity/pkg-plist (+2 lines)
Lines 7-12 Link Here
7
bin/wordVectors.pl
7
bin/wordVectors.pl
8
bin/treebankFreq.pl
8
bin/treebankFreq.pl
9
bin/compounds.pl
9
bin/compounds.pl
10
bin/readDB.pl
10
%%SITE_PERL%%/dbInterface.pm
11
%%SITE_PERL%%/dbInterface.pm
11
%%SITE_PERL%%/get_wn_info.pm
12
%%SITE_PERL%%/get_wn_info.pm
12
%%SITE_PERL%%/stem.pm
13
%%SITE_PERL%%/stem.pm
Lines 22-27 Link Here
22
%%SITE_PERL%%/WordNet/Similarity/jcn.pm
23
%%SITE_PERL%%/WordNet/Similarity/jcn.pm
23
%%SITE_PERL%%/WordNet/Similarity/lch.pm
24
%%SITE_PERL%%/WordNet/Similarity/lch.pm
24
%%SITE_PERL%%/WordNet/Similarity/res.pm
25
%%SITE_PERL%%/WordNet/Similarity/res.pm
26
%%SITE_PERL%%/WordNet/Similarity/wup.pm
25
%%SITE_PERL%%/WordNet/Similarity/vector.pm
27
%%SITE_PERL%%/WordNet/Similarity/vector.pm
26
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WordNet/Similarity/.packlist
28
%%SITE_PERL%%/%%PERL_ARCH%%/auto/WordNet/Similarity/.packlist
27
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/WordNet/Similarity 2>/dev/null || true
29
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/WordNet/Similarity 2>/dev/null || true

Return to bug 58552