aibrain 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/aibrain.rb +26 -0
- data/lib/aibrain/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6bc7a6aa1b5887ac9d4037e0bfe0d17fefb0f92d2364743650993b0f685f6bb
|
4
|
+
data.tar.gz: c8e684a0742b040c58706192dc8916789329e6591a7707db5def44885b628ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5786f2104a496f1f5645ceba59f1f3c2fbcf395f316dc260e3f805f918227fab8fee37d89d6902f6d2d5a31e8ad6d87c27632b7de385ecaf48633fc3ea74051a
|
7
|
+
data.tar.gz: 0145045761fe64c5d56ccb0dcbb8b1da0909def244ac28225474c18bafa8942369d43e1a2bc03c924d2ad015d45a8bdf22302445d3857c84c0ad59d39ed74f49
|
data/lib/aibrain.rb
CHANGED
@@ -31,6 +31,19 @@ module Aibrain
|
|
31
31
|
open("data/output/first_set/problem_defintion.txt", "w") { |f|
|
32
32
|
f.puts "#{abstract_text}"
|
33
33
|
}
|
34
|
+
|
35
|
+
# Write symbolic articles for first set in output.
|
36
|
+
open("data/output/first_set/chosen_noun.txt", "w") { |f|
|
37
|
+
f.puts chosen_noun
|
38
|
+
}
|
39
|
+
|
40
|
+
open("data/output/first_set/chosen_verb.txt", "w") { |f|
|
41
|
+
f.puts chosen_noun
|
42
|
+
}
|
43
|
+
|
44
|
+
open("data/output/first_set/chosen_action.txt", "w") { |f|
|
45
|
+
f.puts chosen_noun
|
46
|
+
}
|
34
47
|
end
|
35
48
|
|
36
49
|
# Generate symbolic relationship from second dataset.
|
@@ -58,6 +71,19 @@ module Aibrain
|
|
58
71
|
open("data/output/second_set/problem_defintion.txt", "w") { |f|
|
59
72
|
f.puts "#{abstract_text}"
|
60
73
|
}
|
74
|
+
|
75
|
+
# Write symbolic articles for second set in output.
|
76
|
+
open("data/output/second_set/chosen_noun.txt", "w") { |f|
|
77
|
+
f.puts chosen_noun
|
78
|
+
}
|
79
|
+
|
80
|
+
open("data/output/second_set/chosen_verb.txt", "w") { |f|
|
81
|
+
f.puts chosen_noun
|
82
|
+
}
|
83
|
+
|
84
|
+
open("data/output/second_set/chosen_action.txt", "w") { |f|
|
85
|
+
f.puts chosen_noun
|
86
|
+
}
|
61
87
|
end
|
62
88
|
|
63
89
|
# Generate solutin based on both data sets.
|
data/lib/aibrain/version.rb
CHANGED