lulalala_address_tokenizer 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 37508767abe6d7128484245eae8ab83ff0baf168
4
- data.tar.gz: 78e8693219023cf0e6223335b250d69808ccfc37
3
+ metadata.gz: 75cb4bfbb53934ad6666c4fa4ec30eb918a3be47
4
+ data.tar.gz: 87c94263122e3fb8a9bc52bdba99375f31103e29
5
5
  SHA512:
6
- metadata.gz: abcd4427aa3d668dd846f7cda3a23810348d1abc70aeac1875d383150ebec3d9d0d5cc56a57bdd8656bde4234efe74584499fd7ca45a8c0cc896561faac5afe7
7
- data.tar.gz: c008a2ec2f92cfa4ec7456ec965f456ab4b87e5931ba0f1c78c4b04055dee0e0163141ad02a0ffa3354c618f5d7c56d434a6eba21b75a6be4389eb72d99a1207
6
+ metadata.gz: 3610aa6bf63a48ab9e93916aad499fcbe8b3ca83afc01019dcfb9de16f70786e6f81a4e5592972c6684beb73359b149d3e7c254c943abf8b397a930d28f6b796
7
+ data.tar.gz: d8b9ba448e7bbe4a8b84d3eddc60d4295fb1d842ffa0e10dd922d96d01b1d7402aa929ba294e3dd3a41f4a1bad9fc37dc51d145b5872393113c17d77f2a6f41c
@@ -9,10 +9,13 @@ class LulalalaAddressTokenizer
9
9
 
10
10
  # @params address [String]
11
11
  def parse(address)
12
+ address = address.tr(" \t",'')
13
+
12
14
  segments = []
13
15
  address.chars.each do |ch|
14
16
  segments << "#{ch} n"
15
17
  end
18
+
16
19
  result = @model.label [segments]
17
20
  join(result.first)
18
21
  end
@@ -1,3 +1,3 @@
1
1
  class LulalalaAddressTokenizer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lulalala_address_tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lulalala
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-20 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler