docs: protected void finishAdding()
      {
          noMoreAdding = true;
          
          workSpace = null;
          storageSpace = null;
          wordCounts = null;
          
          int finalLength = currentLength.get();
          int[] frqs = new int[finalLength];
          for(Map.Entry<Integer, AtomicInteger> entry : termDocumentFrequencys.entrySet())
              frqs[entry.getKey()] = entry.getValue().get();
          for(SparseVector vec : vectors)
          {
              //Make sure all the vectors have the same length
              vec.setLength(finalLength);
          }
          weighting.setWeight(vectors, IntList.view(frqs, finalLength));
          
          System.out.println("Final Length: " + finalLength);
          for(SparseVector vec : vectors)
          {
              //Unlike normal index functions, WordWeighting needs to use the vector to do some set up first
              weighting.applyTo(vec);
          }
      }