I am new to java. I need to count word associations with each other in a sentence. For example, for the sentence, "Dog is a Dog and Cat is a Cat", the final association count will be- The first row: Dog-Dog(0), Dog-is(2), Dog-a(2) Dog-and(1), Dog-Cat(2)
and so on.
It is kind of developing an association matrix. Any suggestion on how that can be developed?