I want to implement "Second-order co-occurrence pointwise mutual information" semantic text similarity, for my thesis work in java. Is there any API or libraries present to implement it.