I have a string that I want to split into a list of certain types. For example, I want to split Starter Main Course Dessert to [Starter, Main Course, Dessert]
I cannot use split() because it will split up the Main Course type. How can I do the splitting? Is regex needed?
Main Coursebut notStarter MainorCourse Dessert(fromStarter Main Course Dessert)? This is impossible, AFAIK.nltk. This may be helpful. And this and this too.