This commit is contained in:
Nick Walton
2019-09-26 13:24:24 -06:00
parent b4b9b2e4cf
commit 9cf9b464c5
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ def play_unconstrained():
action = " You " + action + "."
result = story_manager.act(action)
console_print(action + result)
console_print("\n\n" + action + result)
def play_constrained():
+2 -1
View File
@@ -265,7 +265,7 @@ class CTRLGenerator():
def generate(self, prompt, options=None):
prompt = self.prompt_replace(prompt)
print("PROMPT: \n", prompt)
print("\n\n*****DEBUG*****")
if options is None: options = dict()
if "used_verbs" not in options:
@@ -299,4 +299,5 @@ class CTRLGenerator():
token_num += 1
print("****END DEBUG*****\n\n")
return self.result_replace(result)
+4 -2
View File
@@ -111,7 +111,8 @@ first_to_second_mappings = [
("mine","yours"),
("me", "you"),
("us", "you"),
("our", "your")
("our", "your"),
("I'll", "you'll")
]
second_to_first_mappings = [
@@ -119,7 +120,8 @@ second_to_first_mappings = [
("your ", "my "),
("you are", "I am"),
("you", "I"),
("you", "me")
("you", "me"),
("you'll", "I'll")
]
def capitalize_helper(string):