semtools 0.1.2 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -92,7 +92,7 @@ end
92
92
  # +charsToRemove+:: char (or chars set) to be removed from texts to be compared
93
93
  # +unique+:: boolean flag which indicates if repeated elements must be removed
94
94
  # Returns the similarity percentage for all elements into array
95
- def similitude_network(items_array, splitChar = ";", charsToRemove = "", unique = false)
95
+ def similitude_network(items_array, splitChar: ";", charsToRemove: "", unique: false)
96
96
  # Special cases
97
97
  return nil if items_array.nil?
98
98
  return nil if !items_array.is_a? Array
@@ -1,3 +1,3 @@
1
1
  module Semtools
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/semtools.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "semtools/version"
2
2
  require "semtools/sim_handler"
3
- require "semtools/math_methods"
4
3
  require "semtools/ontology"
5
4
 
6
5
  module Semtools
data/semtools.gemspec CHANGED
@@ -31,7 +31,10 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ["lib"]
32
32
 
33
33
  spec.add_dependency "text"
34
+ spec.add_dependency "down"
35
+ spec.add_dependency "expcalc"
34
36
 
35
37
  spec.add_development_dependency "rake"
36
38
  spec.add_development_dependency "rspec"
39
+ spec.add_runtime_dependency 'colorize', '>= 0.7.3'
37
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - seoanezonjic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-17 00:00:00.000000000 Z
12
+ date: 2022-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: text
@@ -25,6 +25,34 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: down
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: expcalc
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
28
56
  - !ruby/object:Gem::Dependency
29
57
  name: rake
30
58
  requirement: !ruby/object:Gem::Requirement
@@ -53,6 +81,20 @@ dependencies:
53
81
  - - ">="
54
82
  - !ruby/object:Gem::Version
55
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: colorize
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 0.7.3
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 0.7.3
56
98
  description: This gem allows to perform ontology based operations and calculation
57
99
  of Semantic similarity and information coefficient using different implementations.
58
100
  email:
@@ -61,6 +103,7 @@ email:
61
103
  executables:
62
104
  - console
63
105
  - onto2json.rb
106
+ - semtools.rb
64
107
  - setup
65
108
  - strsimnet.rb
66
109
  extensions: []
@@ -76,8 +119,10 @@ files:
76
119
  - Rakefile
77
120
  - bin/console
78
121
  - bin/onto2json.rb
122
+ - bin/semtools.rb
79
123
  - bin/setup
80
124
  - bin/strsimnet.rb
125
+ - external_data/ontologies.txt
81
126
  - lib/data/hp.obo
82
127
  - lib/data/phenotype_annotation.tab
83
128
  - lib/semtools.rb
@@ -105,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
150
  - !ruby/object:Gem::Version
106
151
  version: '0'
107
152
  requirements: []
108
- rubygems_version: 3.2.3
153
+ rubygems_version: 3.2.15
109
154
  signing_key:
110
155
  specification_version: 4
111
156
  summary: Gem to handle semantic based calculations in text and defined ontologies