I have a column with text data. Sample is as shown below.
                 column1
                  Apple
                  Mango
                  Grape
                  banana
                  Apple
                  Mango
                  Fruit
If you look at the data, apple is followed by mango. Or it can be stated as whenever apple occurs next mango will occur. There might be more than one such matching. How can this be found. I know text similarity finding techniques done in nlp. But how to approach this kind of situation. Any suggestion please.