browser_web_data_entity_sumarization 1.1.0 → 1.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: 50d8c5ff5880f9968b13c95fd011f710136cc67e
4
- data.tar.gz: 22c9b64580a809039843eefe3e93581a3806c218
3
+ metadata.gz: 90ae382f8eee60180daa3ed615194b3af4f9383a
4
+ data.tar.gz: 510481f394ef484531b125dd03c7133f19ed02fd
5
5
  SHA512:
6
- metadata.gz: 1d299add8c0a7b7d6573286ddfd7f99ff20b8ae7d7efa57b04a336c093da8c66281baa16c2f09a977af3edd9c092288dfc7faa436f4cf1f19338f2376483d99c
7
- data.tar.gz: 6948d506e131edb7004d79ab1fa5f5e1f7017fe6dab1292070f7059decc120c0a4a76a2b556510088c9edbb0fed4e1c54a0a75064be8523c448aa945cedefd26
6
+ metadata.gz: c7cea62c2e8c618475189610f3cad20c32e748bec55e2e23e662eca76dd9bca33a0c8173c0803d3b85ce43e3ec8972810daf555bb28479e5340eaf8badf7b3be
7
+ data.tar.gz: 33720d58a6675dd1ca1dffc4a2fce5fa9c5a6f5be982a2d3fe41c019e6cbb82e1625dec262f25e8318842feda8da0429146eb401f8ff4ad95e932ee72385e732
@@ -61,7 +61,7 @@ module BrowserWebData
61
61
  # @param [Array<String>] predicates
62
62
  def identify_identical_predicates(predicates, identical_limit = @identical_limit)
63
63
  combination = predicates.take(IMPORTANCE_TO_IDENTIFY_MAX_COUNT).map { |p| p.to_sym }.combination(2)
64
- times_count = combination.size / 10
64
+ times_count = combination.size / 10.0
65
65
 
66
66
  combination.each_with_index { |values, i|
67
67
 
@@ -270,7 +270,7 @@ module BrowserWebData
270
270
  def load_counts
271
271
  unless @counts
272
272
  file_path = "#{@results_dir_path}/counts.json"
273
- @counts = ensure_load_json(file_path, {})
273
+ @counts = ensure_load_json(file_path, {}, {symbolize_names: true})
274
274
  end
275
275
  end
276
276
 
@@ -1,3 +1,3 @@
1
1
  module EntitySumarization
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_web_data_entity_sumarization
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Filteš
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.1.0
27
- description:
27
+ description: Tool generate .json knowledge base. Knowledge base is based on outward resource links from Wikipedia abstracts, global link relations of entity classes and global literal relations of entity classes.
28
28
  email: marek.filtes@gmail.com
29
29
  executables: []
30
30
  extensions: []