rmmseg-cpp-new 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/ext/rmmseg/algor.h +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47f52db78c26093af49d3b42a7d6626ed8303848
|
4
|
+
data.tar.gz: 5b8b07b7d4c7376a762699492e283c89d2638b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50a9f5025041f61887b7df9c1a2bca340ed7a2743d38aa6bf65f6469655d299146e723d1976396119b4739b08f2fa4c578fb510b8c90035c7b2fe423464867e6
|
7
|
+
data.tar.gz: 2d2d15ca97b57fb5df57d95618274a3ad4b55656137e354c70316f97f982fdf26f4feb8b919a315f97291defdcc4e8933ceb467d839814101049423e43e70b74
|
data/README.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
-
|
1
|
+
rmmseg-cpp-new [![Gem Version][version-badge]][rubygems]
|
2
|
+
==============
|
2
3
|
|
3
|
-
|
4
|
+
|
5
|
+
Copy and rebuild the [rmmseg-cpp](https://github.com/pluskid/rmmseg-cpp): an re-implementation of rmmseg (Chinese word segmentation library for Ruby) in C++, with modern [rake-compiler](https://github.com/rake-compiler/rake-compiler) and windows support.
|
6
|
+
|
7
|
+
Reason not implementing on original rmmseg-cpp see original [PR 4](https://github.com/pluskid/rmmseg-cpp/pull/4)
|
8
|
+
|
9
|
+
[PR](https://github.com/Eric-Guo/rmmseg-cpp-new/pulls) is welcome, although I'm not a native C++ developer.
|
10
|
+
|
11
|
+
[version-badge]: https://badge.fury.io/rb/rmmseg-cpp-new.svg
|
12
|
+
[rubygems]: https://rubygems.org/gems/rmmseg-cpp-new
|
data/ext/rmmseg/algor.h
CHANGED
@@ -46,7 +46,8 @@ namespace rmmseg
|
|
46
46
|
int next_word();
|
47
47
|
int next_char();
|
48
48
|
std::vector<Word *> find_match_words();
|
49
|
-
|
49
|
+
/* max word in dictionary is 8, larger than that is not necessory */
|
50
|
+
int max_word_length() { return 8; }
|
50
51
|
|
51
52
|
const char *m_text;
|
52
53
|
int m_pos;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rmmseg-cpp-new
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pluskid
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-04-
|
14
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description:
|
17
17
|
email:
|