我今天发布了 RMMSeg 0.1.4 版。性能有少许提升,现在使用 ComplexAlgorithm 大约有 20KB/s 的速度,而 SimpleAlgorithm 差不多是 60KB/s 。我在一个 branch 里用 C 来实现了一部分代码,减少了许多 String 的构造,可是效果并不明显,让我非常失望,而且由于我在前一篇 Blog 里提到的 Ruby 关于 Hash 的 Bug ,需要打过 patch 的 Ruby 才能正常运行,所以并没有把带 C 扩展的版本包含在这个 Release 中。
下面是 RubyForge 上的 Release announcement:
rmmseg version 0.1.4 by pluskid http://rmmseg.rubyforge.org== DESCRIPTION
RMMSeg is an implementation of MMSEG Chinese word segmentation algorithm. It is based on two variants of maximum matching algorithms. Two algorithms are available for using:
* simple algorithm that uses only forward maximum matching. * complex algorithm that uses three-word chunk maximum matching and 3 additonal rules to solve ambiguities.
For more information about the algorithm, please refer to the following essays:
* http://technology.chtsai.org/mmseg/ * ../posts/261.html
== CHANGES
* Let user store their customized word to Dictionary after loaded. * Improved performance of SimpleAlgorithm.
Comments (4)
*^_^* 是的~~ :p