text_alignment 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4a8ed8b4cff6f5b04b10c91704939936530ad0dc820a126a514a58cce7a4df6
4
- data.tar.gz: '087412fa8b9779073c67fa1d9a0afc05e32d7f1baad4518c375fcf804a45ecd4'
3
+ metadata.gz: 76e19ea61fda3543526ef26d582ad4ec9cfb3eec33ad03b77a998529af762eb6
4
+ data.tar.gz: e386cd97317e6c32c0d4c9ec347b664c2640fcad17bb7dc906b6b5b9c5784b54
5
5
  SHA512:
6
- metadata.gz: e5f56b58d35a614c6b9a72ccb8282b775d19c2fb576d68420153b96703d954e47471cfbcd9b384bd244f19110cc436d28e409d5014f1ade66c23390a928111fc
7
- data.tar.gz: 4dbdd214b0e2aab9b32751305517160016cfd16b60f5380282b2b1ba2e6946e3097789f4fd234b577cf8ab00e06ea8d3497f59843d600eac2b12b8d60c32441c
6
+ metadata.gz: dbb72e3c50713edc4fbf3328bdcc5f78723d1fe03cad4f451f2142bd05075da0ca9c3ea9b7bcdaeda009bf94cb8e26f4ede32ab96f819479fd3e2f9a988f41e9
7
+ data.tar.gz: 31443cca978d00e03bd5cf4339575ce4b070b06ad690938277b19f12045de2c33e04395c16799cfe4e336ac1b14264dccaa76b1c4fc48f71dbe9558f4efc6221
@@ -67,7 +67,7 @@ class TextAlignment::AnchorFinder
67
67
 
68
68
  e1 = @beg_s1 + @size_ngram
69
69
  e2 = @beg_s2 + @size_ngram
70
- while @s1[e1] == @s2[e2]
70
+ while @s1[e1] && @s1[e1] == @s2[e2]
71
71
  e1 += 1; e2 += 1
72
72
  end
73
73
 
@@ -199,13 +199,9 @@ class TextAlignment::TextAlignment
199
199
  end
200
200
 
201
201
  def transform_denotations!(denotations)
202
- puts "hereherehere========"
203
202
  return nil if denotations.nil?
204
203
  @lost_annotations = []
205
204
 
206
- pp denotations
207
- puts "-----"
208
-
209
205
  denotations.each do |d|
210
206
  begin
211
207
  d.begin = transform_begin_position(d.begin);
@@ -217,7 +213,7 @@ class TextAlignment::TextAlignment
217
213
  end
218
214
  end
219
215
 
220
- pp denotations
216
+ @lost_annotations
221
217
  end
222
218
 
223
219
  def transform_hdenotations(hdenotations)
@@ -1,3 +1,3 @@
1
1
  class TextAlignment
2
- VERSION = '0.3.9'
2
+ VERSION = '0.3.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_alignment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jin-Dong Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-dictionary