summaryrefslogtreecommitdiff
path: root/modeling/prod_numbers.py
diff options
context:
space:
mode:
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