rseg 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +3 -3
- data/VERSION +1 -1
- data/lib/rseg.rb +2 -2
- metadata +4 -4
data/README
CHANGED
@@ -13,7 +13,7 @@ Rseg now support two modes: inline and C/S mode.
|
|
13
13
|
|
14
14
|
> require 'rubygems'
|
15
15
|
> require 'rseg'
|
16
|
-
>
|
16
|
+
> Rseg.segment("需要分词的文章")
|
17
17
|
['需要', '分词', '的', '文章']
|
18
18
|
|
19
19
|
The first call to Rseg#segment will need about 30 seconds to load the dictionary, the second call will be very fast, you can also call Rseg#load to load dictionaries manually.
|
@@ -35,7 +35,7 @@ You can also access server with the Rseg#remote_segment
|
|
35
35
|
$ irb
|
36
36
|
> require 'rubygems'
|
37
37
|
> require 'rseg'
|
38
|
-
>
|
38
|
+
> Rseg.remote_segment("需要分词的文章") # This will be very fast
|
39
39
|
['需要', '分词', '的', '文章']
|
40
40
|
|
41
41
|
Performance
|
@@ -54,4 +54,4 @@ The codes and others in Rseg are licensed under MIT license.
|
|
54
54
|
|
55
55
|
Feedback
|
56
56
|
========
|
57
|
-
All feedback are welcome, Yuanyi Zhang(zhangyuanyi#gmail.com)
|
57
|
+
All feedback are welcome, Yuanyi Zhang(zhangyuanyi#gmail.com)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/rseg.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rseg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yuanyi Zhang
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-29 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|