aligning words to auto detected sentences