Hello,
I want to count phrases in a text file by using Python. For instance, if a text is like "I love you very much", I want to make a dictionary like: "I love": 1, "love you": 1, "you very": 1, and "very much": 1. I also want to do it like: "I love you": 1, "love you very": 1, "you very much": 1.
Would you give a good idea (sample codes) to do this?
Thank you!!!