entityextractor 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/entityextractor.rb +4 -4
  3. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3393233d6b5a8717d256f130c176b16bd2ed185
4
- data.tar.gz: 546527bb55ee6d4af863236938460fa66aa4384a
3
+ metadata.gz: 81be4e29ad4a46a33f156efb2b9f52cdc4801701
4
+ data.tar.gz: ec4a0dcf08239c7b5430d56b352aea1bc4a74f8f
5
5
  SHA512:
6
- metadata.gz: 20aad2d3d3d0b63dbad195ae96e31b6569a624cc6e7da680a77a81510cfb59c3af97d61d813878a38f8bedaf02335b3712963c2c68d3c75dc01b73c439fa3058
7
- data.tar.gz: 4b33fca6dc496a4f456928ff336a6ad16554e347f0702d22a72f45b11a021236f61c5e39ae438dbcf83885f935a6555b18a85ab2df7f3467d4698b754c181b40
6
+ metadata.gz: 20fec5e9765264d945f6d5c2711cb588f4067c8bed0ea62b5b8b7af6651161c9bcfeaa276966bc0869167ca0410d10b6ec3c01a74eca431daa5049da10af2b0f
7
+ data.tar.gz: 929e7f0ecddb66594f7b9b80f63c424c1e7356b02d7e62b684847789a034dcf1144b08feabc5399e309b703bcc338db7fda18a61c6f1cf526d88e58c251bbf53
@@ -20,12 +20,12 @@ class EntityExtractor
20
20
  extractlist.each do |t, c|
21
21
  count+=1
22
22
  if c == true
23
- if i[field].to_s.include? t
24
- addlist.push(t)
23
+ if i[field].to_s.match(/\b(#{t})\b/)
24
+ addlist.push(t) if !addlist.include? t
25
25
  end
26
26
  else
27
- if downcased.include? t.downcase
28
- addlist.push(t)
27
+ if downcased.match(/\b(#{t.downcase})\b/)
28
+ addlist.push(t) if !addlist.include? t
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entityextractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Extracts entities and terms from any JSON.
14
14
  email: shidash@shidash.com
@@ -16,9 +16,9 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - lib/entityextractor.rb
19
20
  - lib/extractdates.rb
20
21
  - lib/handleinput.rb
21
- - lib/entityextractor.rb
22
22
  homepage: https://github.com/Shidash/EntityExtractor
23
23
  licenses:
24
24
  - GPL
@@ -29,19 +29,18 @@ require_paths:
29
29
  - lib
30
30
  required_ruby_version: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.0.14
42
+ rubygems_version: 2.2.2
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Extracts entities and terms
46
46
  test_files: []
47
- has_rdoc: