[88883] trunk/dports
hum at macports.org
hum at macports.org
Sat Jan 14 06:41:09 PST 2012
Revision: 88883
http://trac.macports.org/changeset/88883
Author: hum at macports.org
Date: 2012-01-14 06:41:06 -0800 (Sat, 14 Jan 2012)
Log Message:
-----------
{p5,py,rb,rb19}-mecab: update to 0.991; fix test.py to use MeCab.Lattice.
Modified Paths:
--------------
trunk/dports/perl/p5-mecab/Portfile
trunk/dports/python/py-mecab/Portfile
trunk/dports/python/py-mecab/files/patch-test.py.diff
trunk/dports/ruby/rb-mecab/Portfile
trunk/dports/ruby/rb19-mecab/Portfile
Modified: trunk/dports/perl/p5-mecab/Portfile
===================================================================
--- trunk/dports/perl/p5-mecab/Portfile 2012-01-14 14:37:44 UTC (rev 88882)
+++ trunk/dports/perl/p5-mecab/Portfile 2012-01-14 14:41:06 UTC (rev 88883)
@@ -4,7 +4,7 @@
PortSystem 1.0
PortGroup perl5 1.0
-perl5.setup MeCab 0.99
+perl5.setup MeCab 0.991
categories-append textproc japanese
platforms darwin
maintainers gmail.com:rsky0711 hum openmaintainer
@@ -15,10 +15,10 @@
homepage http://mecab.sourceforge.net/
master_sites googlecode:mecab
+checksums rmd160 4ae316c276019f036565d8b8bbc2ca018dd2115a \
+ sha256 1aa4ca56c5bf67addf766af8b8d401ba1042a111fc2b2b4dec11cfd765483ff0
distname mecab-perl-${perl5.moduleversion}
dist_subdir mecab
-checksums rmd160 497f6786603904609f6929791d3c6bbab0809d20 \
- sha256 ffa2ffac41dff7c33fbe8e602cbee2eb736d96cb18dcbb7395479d8f5f6fbc41
if {${perl5.major} != ""} {
depends_lib-append path:bin/mecab-config:mecab-utf8
Modified: trunk/dports/python/py-mecab/Portfile
===================================================================
--- trunk/dports/python/py-mecab/Portfile 2012-01-14 14:37:44 UTC (rev 88882)
+++ trunk/dports/python/py-mecab/Portfile 2012-01-14 14:41:06 UTC (rev 88883)
@@ -5,7 +5,7 @@
PortGroup python 1.0
name py-mecab
-version 0.99
+version 0.991
python.versions 24 25 26 27
categories-append textproc japanese
platforms darwin
@@ -17,10 +17,10 @@
homepage http://mecab.sourceforge.net/
master_sites googlecode:mecab
+checksums rmd160 014516f9d0d0e597488777f81d53019ab90960c3 \
+ sha256 47c6dc9b442280a3261645eaa7975539e05a1ae67f55fe9ba2011249df0145eb
distname mecab-python-${version}
dist_subdir mecab
-checksums rmd160 37ce18b453fd01e3ba718a310b54eee0404886ea \
- sha256 027b553e173bec53f34ec6bbf82e1cbd85f15f050caf85c06097ca87e52dbb2c
if {${subport} != ${name}} {
depends_lib-append path:bin/mecab-config:mecab-utf8
Modified: trunk/dports/python/py-mecab/files/patch-test.py.diff
===================================================================
--- trunk/dports/python/py-mecab/files/patch-test.py.diff 2012-01-14 14:37:44 UTC (rev 88882)
+++ trunk/dports/python/py-mecab/files/patch-test.py.diff 2012-01-14 14:41:06 UTC (rev 88883)
@@ -1,8 +1,60 @@
---- test.py.orig 2011-11-05 22:09:29.000000000 +0900
-+++ test.py 2011-11-05 22:10:08.000000000 +0900
+--- test.py.orig 2012-01-14 22:31:19.000000000 +0900
++++ test.py 2012-01-14 22:36:40.000000000 +0900
@@ -1,4 +1,5 @@
#!/usr/bin/python
+# -*- coding:utf-8 -*-
import MeCab
import sys
+@@ -10,30 +11,41 @@
+
+ print MeCab.VERSION
+
+- t = MeCab.Tagger (" ".join(sys.argv))
++ model = MeCab.Model(" ".join(sys.argv))
++ c = model.createTagger()
+
+- print t.parse (sentence)
++ print c.parse(sentence)
+
+- m = t.parseToNode (sentence)
++ m = c.parseToNode(sentence)
+ while m:
+ print m.surface, "\t", m.feature
+ m = m.next
+ print "EOS"
+
+- n = t.parseToNode(sentence)
+- len = n.sentence_length;
++ lattice = MeCab.Lattice()
++ lattice.set_sentence(sentence)
++
++ c.parse(lattice)
++ len = lattice.size()
+ for i in range(len + 1):
+- b = n.begin_node_list(i)
+- e = n.end_node_list(i)
++ b = lattice.begin_nodes(i)
++ e = lattice.end_nodes(i)
+ while b:
+ print "B[%d] %s\t%s" % (i, b.surface, b.feature)
+- b = b.bnext
++ b = b.bnext
+ while e:
+ print "E[%d] %s\t%s" % (i, e.surface, e.feature)
+ e = e.bnext
+- print "EOS";
++ print "EOS"
++
++ lattice.set_sentence(sentence)
++ lattice.set_request_type(MeCab.MECAB_NBEST)
++ c.parse(lattice)
++ for i in range(10):
++ lattice.next()
++ print lattice.toString()
+
+- d = t.dictionary_info()
++ d = c.dictionary_info()
+ while d:
+ print "filename: %s" % d.filename
+ print "charset: %s" % d.charset
Modified: trunk/dports/ruby/rb-mecab/Portfile
===================================================================
--- trunk/dports/ruby/rb-mecab/Portfile 2012-01-14 14:37:44 UTC (rev 88882)
+++ trunk/dports/ruby/rb-mecab/Portfile 2012-01-14 14:41:06 UTC (rev 88883)
@@ -4,7 +4,7 @@
PortSystem 1.0
PortGroup ruby 1.0
-ruby.setup MeCab 0.99 extconf.rb {}
+ruby.setup MeCab 0.991 extconf.rb {}
categories-append textproc japanese
platforms darwin
maintainers gmail.com:rsky0711 hum openmaintainer
@@ -15,10 +15,10 @@
homepage http://mecab.sourceforge.net/
master_sites googlecode:mecab
+checksums rmd160 2f13486bba88c52bd6b4831187f560cc8cdd1257 \
+ sha256 a5dac8a5b63eeb2b2f3caef03b5cdc24a8ec8540ee2489bfd80a9ee4816b95e8
distname mecab-ruby-${version}
dist_subdir mecab
-checksums rmd160 09a0c2c758e388b7632a981d534cca85f42f477f \
- sha256 b5fa43498a22688991add19e15599239b12d10458a466b98a9d90960d39006fc
depends_lib-append path:bin/mecab-config:mecab-utf8
Modified: trunk/dports/ruby/rb19-mecab/Portfile
===================================================================
--- trunk/dports/ruby/rb19-mecab/Portfile 2012-01-14 14:37:44 UTC (rev 88882)
+++ trunk/dports/ruby/rb19-mecab/Portfile 2012-01-14 14:41:06 UTC (rev 88883)
@@ -4,7 +4,7 @@
PortSystem 1.0
PortGroup ruby 1.0
-ruby.setup MeCab 0.99 extconf.rb {} {} ruby19
+ruby.setup MeCab 0.991 extconf.rb {} {} ruby19
categories-append textproc japanese
platforms darwin
maintainers gmail.com:rsky0711 hum openmaintainer
@@ -15,10 +15,10 @@
homepage http://mecab.sourceforge.net/
master_sites googlecode:mecab
+checksums rmd160 2f13486bba88c52bd6b4831187f560cc8cdd1257 \
+ sha256 a5dac8a5b63eeb2b2f3caef03b5cdc24a8ec8540ee2489bfd80a9ee4816b95e8
distname mecab-ruby-${version}
dist_subdir mecab
-checksums rmd160 09a0c2c758e388b7632a981d534cca85f42f477f \
- sha256 b5fa43498a22688991add19e15599239b12d10458a466b98a9d90960d39006fc
depends_lib-append path:bin/mecab-config:mecab-utf8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120114/309ee40b/attachment-0001.html>
More information about the macports-changes
mailing list