igo 0.1.4.2 → 0.1.4.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 676a3bfd6e2aa4c63963d67ec65aa18364b1c3b93e4478721453a9ec0cbe37f3
4
- data.tar.gz: b925f5b3fd74c3136cde15388451c8dcafcbd8f8d0bb458c414a01f142bbf124
3
+ metadata.gz: cb6aa82cbe2554d14aac09e8d583297de352c4e005cf15f27b78ca50fb354f95
4
+ data.tar.gz: 8dcf65e8294c2daf4bb0ec830ecccc42cda0cc1687d7be71f4c15494148f4fc5
5
5
  SHA512:
6
- metadata.gz: 9cd700bdcd72406257e00a17a87d133b3d6ddb2aa216afc3a9289cf8b013e59b82d4d47a034974d77b22b1c8210ebce18d143886c0934eb0bfd022088873bcd7
7
- data.tar.gz: 25740b6c8ad3ad5e562bcb3c2d1925d9835ae0c0b6cca5d6901051f3dc89081d1963ba950bf594aa4a9ef680200fac7b98a7b4baeccc68f27f230e77d2394640
6
+ metadata.gz: 18467db48f62b0b71a020a3f1874997a9dbfeed0ab0100aa18d8b0e622fd14cfddee7ec7d9725e4bbe452c47769af009afe2846f8ceeee8d3d59207081eb0468
7
+ data.tar.gz: 64f3908baa695f3538b66ad98a9783656a802fbbc187a4cf23635bcf90833dbbd05c88e5c3f0795ae33caf7154db9a790fd28b309321f48e32596cbbffb07eec
data/lib/igo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Igo
4
- VERSION = "0.1.4.2"
4
+ VERSION = "0.1.4.3"
5
5
  end
data/lib/igo/zh.rb CHANGED
@@ -32,6 +32,7 @@ module Igo
32
32
  s ? res.join(" ") : res
33
33
  end
34
34
  when /thulac/
35
+ require_relative 'thulac'
35
36
  Thulac.cut(str, text: s)
36
37
  end
37
38
  end
@@ -39,7 +40,7 @@ module Igo
39
40
  def tag str, s: false, by: 0
40
41
  case by
41
42
  when /thu/
42
- require './thulac'
43
+ require_relative 'thulac'
43
44
  Thulac.cut str, text: s
44
45
  else
45
46
  s ? Tagging.tag(str).map{_1.to_a.flatten.join("_")}.join(" ") : Tagging.tag(str).map{_1.to_a.flatten}
data/lib/igo.rb CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  require_relative "igo/version"
4
4
  require 'jieba_rb'
5
- require 'igo/zh'
6
- require 'igo/ja'
5
+ require_relative 'igo/zh'
6
+ require_relative 'igo/ja'
7
7
 
8
8
  module Igo
9
9
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: igo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.2
4
+ version: 0.1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - saisui