summaryrefslogtreecommitdiff
path: root/modeling/prod_numbers.py
diff options
context:
space:
mode:
authorDobbertin, Niclas <niclas.dobbertin@mailbox.org>2024-10-14 23:19:55 +0200
committerDobbertin, Niclas <niclas.dobbertin@mailbox.org>2024-10-14 23:19:55 +0200
commit3eb78a1ddb0ac78c4306f4b6d2f81f62d097179a (patch)
tree90e20453ba85ae07b4ce7b24e183dacd7d5c10ee /modeling/prod_numbers.py
parentde0fe964cdea8ec69bbb81732c6627fac38280b0 (diff)
bugfixes
Diffstat (limited to 'modeling/prod_numbers.py')
-rw-r--r--modeling/prod_numbers.py81
1 files changed, 41 insertions, 40 deletions
diff --git a/modeling/prod_numbers.py b/modeling/prod_numbers.py
index 773768d..43cd769 100644
--- a/modeling/prod_numbers.py
+++ b/modeling/prod_numbers.py
@@ -44,7 +44,7 @@ def number(Model):
==>
=g>
isa math_goal
- expand_slot None
+ expand_slot arg2
ones1 =one
tens1 =ten
hundreds1 =hun
@@ -53,25 +53,25 @@ def number(Model):
)
prods.append(number_expand_arg1_done)
- number_expand_arg1_fail = Model.productionstring(
- name="number_expand_arg1_fail",
- # reward=-100,
- string="""
- =g>
- isa math_goal
- op expand
- ones1 None
- expand_slot arg1
- ?retrieval>
- state error
- ==>
- =g>
- isa math_goal
- expand_slot None
- ~retrieval>
- """
- )
- prods.append(number_expand_arg1_fail)
+ # number_expand_arg1_fail = Model.productionstring(
+ # name="number_expand_arg1_fail",
+ # # reward=-100,
+ # string="""
+ # =g>
+ # isa math_goal
+ # op expand
+ # ones1 None
+ # expand_slot arg1
+ # ?retrieval>
+ # state error
+ # ==>
+ # =g>
+ # isa math_goal
+ # expand_slot None
+ # ~retrieval>
+ # """
+ # )
+ # prods.append(number_expand_arg1_fail)
number_expand_arg2 = Model.productionstring(
@@ -82,7 +82,7 @@ def number(Model):
op expand
arg2 =num
ones2 None
- expand_slot None
+ expand_slot arg2
?retrieval>
state free
buffer empty
@@ -97,25 +97,25 @@ def number(Model):
)
prods.append(number_expand_arg2)
- number_expand_arg2_fail = Model.productionstring(
- name="number_expand_arg2_fail",
- # reward=-100,
- string="""
- =g>
- isa math_goal
- op expand
- ones2 None
- expand_slot arg2
- ?retrieval>
- state error
- ==>
- =g>
- isa math_goal
- expand_slot None
- ~retrieval>
- """
- )
- prods.append(number_expand_arg2_fail)
+ # number_expand_arg2_fail = Model.productionstring(
+ # name="number_expand_arg2_fail",
+ # # reward=-100,
+ # string="""
+ # =g>
+ # isa math_goal
+ # op expand
+ # ones2 None
+ # expand_slot arg2
+ # ?retrieval>
+ # state error
+ # ==>
+ # =g>
+ # isa math_goal
+ # expand_slot None
+ # ~retrieval>
+ # """
+ # )
+ # prods.append(number_expand_arg2_fail)
number_expand_arg2_done = Model.productionstring(
name="number_expand_arg2_done",
@@ -135,6 +135,7 @@ def number(Model):
==>
=g>
isa math_goal
+ op done
expand_slot None
ones2 =one
tens2 =ten