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.
Files changed (4) hide show
  1. data/README +3 -3
  2. data/VERSION +1 -1
  3. data/lib/rseg.rb +2 -2
  4. 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
- > RSeg.segment("需要分词的文章")
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
- > RSeg.remote_segment("需要分词的文章") # This will be very fast
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.6
1
+ 0.1.7
@@ -56,7 +56,7 @@ class Rseg
56
56
  end
57
57
 
58
58
  def segment
59
- @words.clear
59
+ @words = []
60
60
 
61
61
  @input.chars.each do |origin|
62
62
  char = filter(origin)
@@ -135,4 +135,4 @@ class Rseg
135
135
  engine_klass.new
136
136
  end
137
137
  end
138
- end
138
+ end
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
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-11-28 00:00:00 +08:00
18
+ date: 2010-12-29 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency