"I want to schedule an event" crashes the assistant
Xyaneon opened this issue · comments
Christopher Kyle Horton commented
Either speak this or pass this sentence to the assistant, and it crashes with the following traceback:
Traceback (most recent call last):
File "LTUAssistant.py", line 28, in <module>
Integrate(" ".join(sys.argv[1:]))
File "LTUAssistant.py", line 19, in Integrate
(verb, verb_object, noun2, verb2, preposition) = CoreNLP.Parse(sentence)
File "/home/christopher/LTUAssistant/CoreNLP.py", line 129, in Parse
print("Changing verb to %s" % GetWords(sentence, verb))
File "/home/christopher/LTUAssistant/CoreNLP.py", line 113, in GetWords
return " ".join(parsed["tokens"][wordPositions[0]:wordPositions[1]])
TypeError: 'int' object has no attribute '__getitem__'
jacob1 commented
Seems like it is an issue with the CoreNLP part of the code, i'll look into it tomorrow.