code: public double score(StringWrapper s, StringWrapper t) {
  	checkTrainingHasHappened(s,t);
  	UnitVector sBag = asUnitVector(s);
  	UnitVector tBag = asUnitVector(t);
      if (s.unwrap().equals(t.unwrap())) {
        return 1.0;
      }
      else {
        String[] sTokens = getTokenArray(sBag),
            tTokens = getTokenArray(tBag);
        double[] sIdfArray = getIDFArray(sBag),
            tIdfArray = getIDFArray(tBag);
        return algorithm1(sTokens, tTokens, sIdfArray, tIdfArray);
      }
    }
docs: getStringMetric computes the similarity between a pair of strings T and U.
  
  @param T String
  @param U String
  @return double