rseg 0.1.4 → 0.1.5

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/VERSION +1 -1
  2. data/dict/dict.hash +0 -0
  3. data/lib/rseg.rb +6 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
Binary file
@@ -21,7 +21,12 @@ class Rseg
21
21
  Rseg.instance.input = input
22
22
  Rseg.instance.segment
23
23
  end
24
-
24
+
25
+ def load
26
+ Rseg.instance
27
+ nil
28
+ end
29
+
25
30
  def remote_segment(input)
26
31
  begin
27
32
  response = Net::HTTP.post_form(URI.parse('http://127.0.0.1:4100/seg'), :input => input)
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: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yuanyi Zhang