segment-english-by-dictionary

segment english with no space by using dictionary

dictionary = ["he", "like","likes" ,"cat"]
string = "helikescat"
after segmentation -> he likes cat