diff --git a/Memory.py b/Memory.py index ed6ed80..79f9c25 100644 --- a/Memory.py +++ b/Memory.py @@ -210,7 +210,7 @@ def ProcessInput(currentTime, memory, inputforNAR, backups = ["input", "answers" if c2 > c: memory[(term, time)] = (currentTime, usefulness + usefulnessAddition, (f2, c2)) else: - memory[(term, currentTime)] = (currentTime, usefulnessAddition, (f2, c2)) + memory[(term, time)] = (currentTime, usefulnessAddition, (f2, c2)) if ">." in inputforNAR or "! :|:" in inputforNAR: currentTime += 1 if inputforNAR.isdigit(): diff --git a/NarsGPT.py b/NarsGPT.py index 62c6dad..4936b9e 100644 --- a/NarsGPT.py +++ b/NarsGPT.py @@ -81,6 +81,7 @@ def PromptProcess(inp, buf, send_prompt, isQuestion): else: occurrenceTimeInfo = "" if answer["occurrenceTime"] == "eternal" else " t="+answer["occurrenceTime"] print("Answer: " + answer["term"] + answer["punctuation"] + " {" + str(answer["truth"]["frequency"]) + " " + str(answer["truth"]["confidence"]) + "}" + occurrenceTimeInfo) + Memory_store(filename, memory, currentTime) continue if inp.startswith("*memory"): for x in memory.items():