Java: Match tokens between two strings and return the number of matched tokens
- by Cryssie
Need some help to find the number of matched tokens between two strings. I have a list of string stored in ArrayList (example given below):
Line 0 : WRB VBD NN VB IN CC RB VBP NNP
Line 1 : WDT NNS VBD DT NN NNP NNP
Line 2 : WRB MD PRP VB DT NN IN NNS POS JJ NNS
Line 3 : WDT NN VBZ DT NN IN DT JJ NN IN DT NNP
Line 4 : WP VBZ DT JJ NN IN NN
…