akiva 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/.gitignore +15 -0
- data/.rspec +2 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +80 -0
- data/Guardfile +11 -0
- data/LICENSE +9 -0
- data/README.md +131 -0
- data/Rakefile +5 -0
- data/akiva.gemspec +38 -0
- data/lib/akiva.rb +11 -0
- data/lib/akiva/brain.rb +47 -0
- data/lib/akiva/cli.rb +58 -0
- data/lib/akiva/core_brain/actions/get_answers_from_subjects_and_properties.rb +73 -0
- data/lib/akiva/core_brain/actions/preparators/compare_two_subjects_properties_from_comparison_adjective.rb +19 -0
- data/lib/akiva/core_brain/actions/preparators/extract_property_from_comparison_adjective.rb +10 -0
- data/lib/akiva/core_brain/actions/preparators/regroup_separated_subjects.rb +10 -0
- data/lib/akiva/core_brain/actions/preparators/sort_answers_by_units.rb +35 -0
- data/lib/akiva/core_brain/actions/template.rb +23 -0
- data/lib/akiva/core_brain/filters/get_answers_from_subjects_and_properties.rb +15 -0
- data/lib/akiva/core_brain/filters/template.rb +9 -0
- data/lib/akiva/core_brain/formatters/boolean_from_comparison.rb +17 -0
- data/lib/akiva/core_brain/formatters/list_all_answers.rb +28 -0
- data/lib/akiva/core_brain/formatters/template.rb +19 -0
- data/lib/akiva/core_brain/helpers/comparison_adjectives_to_properties.rb +151 -0
- data/lib/akiva/core_brain/helpers/misc.rb +28 -0
- data/lib/akiva/core_brain/helpers/units.rb +167 -0
- data/lib/akiva/core_brain/loader.rb +3 -0
- data/lib/akiva/question.rb +88 -0
- data/lib/akiva/version.rb +9 -0
- data/spec/lib/akiva/brain_spec.rb +89 -0
- data/spec/lib/akiva/core_brain/actions/get_answers_from_subjects_and_properties_spec.rb +77 -0
- data/spec/lib/akiva/core_brain/actions/preparators/compare_two_subjects_properties_from_comparison_adjective_spec.rb +22 -0
- data/spec/lib/akiva/core_brain/actions/preparators/extract_property_from_comparison_adjective_spec.rb +11 -0
- data/spec/lib/akiva/core_brain/actions/preparators/regroup_separated_subjects_spec.rb +11 -0
- data/spec/lib/akiva/core_brain/actions/preparators/sort_answers_by_units_spec.rb +36 -0
- data/spec/lib/akiva/core_brain/filters/get_answers_from_subjects_and_properties_spec.rb +44 -0
- data/spec/lib/akiva/core_brain/formatters/boolean_from_comparison_spec.rb +38 -0
- data/spec/lib/akiva/core_brain/formatters/list_all_answers_spec.rb +60 -0
- data/spec/lib/akiva/core_brain/helpers/misc_spec.rb +26 -0
- data/spec/lib/akiva/core_brain/helpers/units_spec.rb +141 -0
- data/spec/lib/akiva/core_brain/question_spec.rb +170 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/support/akiva_brain_helpers.rb +13 -0
- data/spec/support/akiva_statements_helpers.rb +66 -0
- metadata +75 -16
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akiva
|
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
|
- Christophe Maximin
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.18'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_print
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.2'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.2'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,20 +178,6 @@ dependencies:
|
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: '1.9'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: awesome_print
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.2'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '1.2'
|
181
181
|
description: Akiva is a simple natural language processing, question-answering artificial
|
182
182
|
intelligence. It is a demonstration of how to use the API of TheBigDB (http://thebigbdb.com)
|
183
183
|
to create knowledgable software.
|
@@ -187,7 +187,51 @@ executables:
|
|
187
187
|
extensions: []
|
188
188
|
extra_rdoc_files: []
|
189
189
|
files:
|
190
|
+
- ".gitignore"
|
191
|
+
- ".rspec"
|
192
|
+
- Gemfile
|
193
|
+
- Gemfile.lock
|
194
|
+
- Guardfile
|
195
|
+
- LICENSE
|
196
|
+
- README.md
|
197
|
+
- Rakefile
|
198
|
+
- akiva.gemspec
|
190
199
|
- bin/akiva
|
200
|
+
- lib/akiva.rb
|
201
|
+
- lib/akiva/brain.rb
|
202
|
+
- lib/akiva/cli.rb
|
203
|
+
- lib/akiva/core_brain/actions/get_answers_from_subjects_and_properties.rb
|
204
|
+
- lib/akiva/core_brain/actions/preparators/compare_two_subjects_properties_from_comparison_adjective.rb
|
205
|
+
- lib/akiva/core_brain/actions/preparators/extract_property_from_comparison_adjective.rb
|
206
|
+
- lib/akiva/core_brain/actions/preparators/regroup_separated_subjects.rb
|
207
|
+
- lib/akiva/core_brain/actions/preparators/sort_answers_by_units.rb
|
208
|
+
- lib/akiva/core_brain/actions/template.rb
|
209
|
+
- lib/akiva/core_brain/filters/get_answers_from_subjects_and_properties.rb
|
210
|
+
- lib/akiva/core_brain/filters/template.rb
|
211
|
+
- lib/akiva/core_brain/formatters/boolean_from_comparison.rb
|
212
|
+
- lib/akiva/core_brain/formatters/list_all_answers.rb
|
213
|
+
- lib/akiva/core_brain/formatters/template.rb
|
214
|
+
- lib/akiva/core_brain/helpers/comparison_adjectives_to_properties.rb
|
215
|
+
- lib/akiva/core_brain/helpers/misc.rb
|
216
|
+
- lib/akiva/core_brain/helpers/units.rb
|
217
|
+
- lib/akiva/core_brain/loader.rb
|
218
|
+
- lib/akiva/question.rb
|
219
|
+
- lib/akiva/version.rb
|
220
|
+
- spec/lib/akiva/brain_spec.rb
|
221
|
+
- spec/lib/akiva/core_brain/actions/get_answers_from_subjects_and_properties_spec.rb
|
222
|
+
- spec/lib/akiva/core_brain/actions/preparators/compare_two_subjects_properties_from_comparison_adjective_spec.rb
|
223
|
+
- spec/lib/akiva/core_brain/actions/preparators/extract_property_from_comparison_adjective_spec.rb
|
224
|
+
- spec/lib/akiva/core_brain/actions/preparators/regroup_separated_subjects_spec.rb
|
225
|
+
- spec/lib/akiva/core_brain/actions/preparators/sort_answers_by_units_spec.rb
|
226
|
+
- spec/lib/akiva/core_brain/filters/get_answers_from_subjects_and_properties_spec.rb
|
227
|
+
- spec/lib/akiva/core_brain/formatters/boolean_from_comparison_spec.rb
|
228
|
+
- spec/lib/akiva/core_brain/formatters/list_all_answers_spec.rb
|
229
|
+
- spec/lib/akiva/core_brain/helpers/misc_spec.rb
|
230
|
+
- spec/lib/akiva/core_brain/helpers/units_spec.rb
|
231
|
+
- spec/lib/akiva/core_brain/question_spec.rb
|
232
|
+
- spec/spec_helper.rb
|
233
|
+
- spec/support/akiva_brain_helpers.rb
|
234
|
+
- spec/support/akiva_statements_helpers.rb
|
191
235
|
homepage: https://github.com/thebigdb/akiva
|
192
236
|
licenses:
|
193
237
|
- MIT
|
@@ -213,4 +257,19 @@ signing_key:
|
|
213
257
|
specification_version: 4
|
214
258
|
summary: Simple natural language processing, question-answering artificial intelligence,
|
215
259
|
based on TheBigDB
|
216
|
-
test_files:
|
260
|
+
test_files:
|
261
|
+
- spec/lib/akiva/brain_spec.rb
|
262
|
+
- spec/lib/akiva/core_brain/actions/get_answers_from_subjects_and_properties_spec.rb
|
263
|
+
- spec/lib/akiva/core_brain/actions/preparators/compare_two_subjects_properties_from_comparison_adjective_spec.rb
|
264
|
+
- spec/lib/akiva/core_brain/actions/preparators/extract_property_from_comparison_adjective_spec.rb
|
265
|
+
- spec/lib/akiva/core_brain/actions/preparators/regroup_separated_subjects_spec.rb
|
266
|
+
- spec/lib/akiva/core_brain/actions/preparators/sort_answers_by_units_spec.rb
|
267
|
+
- spec/lib/akiva/core_brain/filters/get_answers_from_subjects_and_properties_spec.rb
|
268
|
+
- spec/lib/akiva/core_brain/formatters/boolean_from_comparison_spec.rb
|
269
|
+
- spec/lib/akiva/core_brain/formatters/list_all_answers_spec.rb
|
270
|
+
- spec/lib/akiva/core_brain/helpers/misc_spec.rb
|
271
|
+
- spec/lib/akiva/core_brain/helpers/units_spec.rb
|
272
|
+
- spec/lib/akiva/core_brain/question_spec.rb
|
273
|
+
- spec/spec_helper.rb
|
274
|
+
- spec/support/akiva_brain_helpers.rb
|
275
|
+
- spec/support/akiva_statements_helpers.rb
|