Beispiel #1
0
import sys
sys.path.insert(0, './plan_selection')
import planManager
from semantics.semantics import *
import leia


if __name__ == "__main__":
	pm = planManager.planManager()
	while (1):
		sentence = raw_input("Enter a sentence\n")
		try:
			if int(sentence) == 0:
				tmr = 0
		except:
			tmr = leia.leia(sentence)[0]
		pm.updatePlanQueue(tmr)
		print "I have {} plan(s) in my queue".format(len(pm.plans))
Beispiel #2
0
import planManager as PLANMANAGER


if __name__ == "__main__":
    pm = PLANMANAGER.planManager()
    TMR = ["Instance of Request Info"]
    pm.updatePlanQueue(TMR)
    time = 0
    while len(pm.plans) > 0:
        pm.updatePlanQueue(0)