Examples of clusterDistribution()


Examples of syntaxLearner.corpus.Word.clusterDistribution()

      for (int i : words){
        Word w = vocab.getWord(i);
        double weight =  (1.0*w.frequency)/(totalSize*wordCount);
        for (ClusterContext cc : clusterContexts){
          distribution[cc.type1 + 1][cc.type2 + 1]+= (w.clusterDistribution(cc)*weight);
        }
        learner.registerClusterUpdate(this);
      }
      return distribution;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.