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 +4 -4
- data/lib/lulalala_address_tokenizer.rb +3 -0
- data/lib/lulalala_address_tokenizer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75cb4bfbb53934ad6666c4fa4ec30eb918a3be47
|
4
|
+
data.tar.gz: 87c94263122e3fb8a9bc52bdba99375f31103e29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2016-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|