code: @Override
    public SortedMap<Double, Set<String>> sortedScoreMap(String[] text) {
      SortedMap<Double, Set<String>> descendingMap = new TreeMap<>();
      double[] categorize = classifyProb(text);
      int catSize = getNumberOfLabels();
      for (int i = 0; i < catSize; i++) {
        String category = getLabel(i);
        double score = categorize[getIndex(category)];
        if (descendingMap.containsKey(score)) {
          descendingMap.get(score).add(category);
        } else {
          Set<String> newset = new HashSet<>();
          newset.add(category);
          descendingMap.put(score, newset);
        }
      }
      return descendingMap;
    }
docs: Returns a map with the score as a key in ascending order.
  The value is a Set of categories with the score.
  Many labels can have the same score, hence the Set as value.
  
  @param text the input text to classify
  @return the sorted score map