Package org.fnlp.nlp.similarity

Examples of org.fnlp.nlp.similarity.Cluster


      float v = it.value()/totalword;
      it.setValue(v);
      int key = it.key();
      if(key<0)
        continue;
      Cluster cluster = new Cluster(key,v,alpahbet.lookupString(key));
      clusters.put(key, cluster);
    }

    TIntObjectIterator<TIntFloatHashMap> it1 = pcc.iterator();
    while(it1.hasNext()){
View Full Code Here


    wordProb.remove(c1);
    wordProb.remove(c2);
    wordProb.put(newid, pc);

    //修改cluster
    Cluster cluster = new Cluster(newid, clusters.get(c1),clusters.get(c2),pc);
    clusters.put(newid, cluster);
    System.out.println("合并:"+cluster.rep);
   
  }
View Full Code Here

TOP

Related Classes of org.fnlp.nlp.similarity.Cluster

Copyright © 2018 www.massapicom. 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.