One hot vectors. You build a dictionary of all words + one catch all for unknown words. Each word then has a position in a sparse vector.<p>So for example :<p>Yes = (0,0,1,0,0,...) 
No = (0,0,0,1,0,....)<p>Convolutional and recurrent nets can handle inputs of arbitrary lengths.