title: apache.commons.text cosine distance
body: <p>I am trying to use cosine distance class of apache commons. But it always returns 1.0. Am I missing someting? Here is my code:</p>
  
  <pre><code>public class ComputeDistance {
      public static void main(String[] args)throws Exception{
  
          CosineDistance dist = new CosineDistance();
          CharSequence c1 = "example text1";
          CharSequence c2 = "another file";
          System.out.println(dist.apply(c1,c2));
      }
  }
  </code></pre>