Recognize phrase from a text file.