EmergentSemanticDialogueFramework 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f633a7cf98a998d7446bad36584237d4a9bfbf826f92bdfe3ac3a655fa03a4d
|
|
4
|
+
data.tar.gz: 4f737ebf7d93d8e982e84f63fa419315a351c2a29fc2f9d78881cbb330c536c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e83319ec9e131fa35163a17d25a94d2dc973b783c1404adb8bccbbe7f5c22c3ac08429509e0557b922adcd4f8ab0ca0e1c91df3da8de5be05e0da0c682be6e3
|
|
7
|
+
data.tar.gz: b4bc9c0d90df38b6bc71e7cbf4f14659d787e12e66c368e9bff978aed608a2a83f138faed5e0f04003d6ae9139161f7085e29282cd351feb20a608de3047db78
|
|
@@ -315,7 +315,7 @@ module EmergentSemanticDialogueFramework
|
|
|
315
315
|
cur_col = col_options.sample
|
|
316
316
|
cur_arr = arr_options.sample
|
|
317
317
|
|
|
318
|
-
@chosen_adverb =
|
|
318
|
+
@chosen_adverb = adverbs[cur_con][cur_row][cur_col][cur_arr]
|
|
319
319
|
end
|
|
320
320
|
|
|
321
321
|
def self.create_dialogue_input
|
|
@@ -381,12 +381,12 @@ module EmergentSemanticDialogueFramework
|
|
|
381
381
|
col_options_charge = [0, 1, 2]
|
|
382
382
|
arr_options_charge = [0, 1]
|
|
383
383
|
|
|
384
|
-
c_cur_row =
|
|
385
|
-
c_cur_col =
|
|
386
|
-
c_cur_arr =
|
|
384
|
+
c_cur_row = row_options_charge.sample
|
|
385
|
+
c_cur_col = col_options_charge.sample
|
|
386
|
+
c_cur_arr = arr_options_charge.sample
|
|
387
387
|
|
|
388
388
|
chosen_vortex_value = nested_vortex[v_cur_row][v_cur_col][v_cur_arr]
|
|
389
|
-
|
|
389
|
+
chosen_charge_value = nested_charge[c_cur_row][c_cur_col][c_cur_arr]
|
|
390
390
|
|
|
391
391
|
## Vortex Loop
|
|
392
392
|
chosen_vortex_value.times do
|
|
@@ -394,17 +394,17 @@ module EmergentSemanticDialogueFramework
|
|
|
394
394
|
size_limit = possible_lines.size.to_i
|
|
395
395
|
index = 0
|
|
396
396
|
|
|
397
|
-
ideal_line =
|
|
397
|
+
ideal_line = possible_lines[chosen_vortex_value].to_s
|
|
398
398
|
|
|
399
399
|
size_limit.times do
|
|
400
|
-
current_line = possible_lines[index]
|
|
400
|
+
current_line = possible_lines[index].to_s
|
|
401
401
|
|
|
402
402
|
if current_line == ideal_line
|
|
403
403
|
File.open("lib/npc/learned_lines.txt", "a") { |f|
|
|
404
404
|
f.puts current_line
|
|
405
405
|
}
|
|
406
406
|
else
|
|
407
|
-
|
|
407
|
+
puts "> Current line did not match the ideal dialogue line..."
|
|
408
408
|
end
|
|
409
409
|
|
|
410
410
|
index = index + 1
|
|
@@ -417,10 +417,10 @@ module EmergentSemanticDialogueFramework
|
|
|
417
417
|
size_limit = learned_lines.size.to_i
|
|
418
418
|
index = 0
|
|
419
419
|
|
|
420
|
-
ideal_line =
|
|
420
|
+
ideal_line = learned_lines[chosen_vortex_value].to_s
|
|
421
421
|
|
|
422
422
|
size_limit.times do
|
|
423
|
-
current_line = learned_lines[index]
|
|
423
|
+
current_line = learned_lines[index].to_s
|
|
424
424
|
|
|
425
425
|
if current_line == ideal_line
|
|
426
426
|
File.open("lib/npc/reinforced_lines.txt", "a") { |f|
|
|
@@ -433,6 +433,7 @@ module EmergentSemanticDialogueFramework
|
|
|
433
433
|
index = index + 1
|
|
434
434
|
end
|
|
435
435
|
end
|
|
436
|
+
|
|
436
437
|
end
|
|
437
438
|
end
|
|
438
439
|
|