docs: private float weight(int c1, int c2, int k) {
  		float w;
  		float pc1 = wordProb.get(c1);
  		float pc2 = wordProb.get(c2);
  		float pck = wordProb.get(k);
  		//新类的概率
  		float pc = pc1+pc2;
  
  		if (c1==k) {			
  			float pcc1 = getProb(c1,c1);
  			float pcc2 = getProb(c2,c2);
  			float pcc3 = getProb(c1,c2);
  			float pcc4 = getProb(c2,c1);
  			float pcc = pcc1 + pcc2 + pcc3 + pcc4;
  			w = clacW(pcc,pc,pc);			
  
  		} else {
  
  			float pcc1 = getProb(c1,k);
  			float pcc2 = getProb(c2,k);
  
  			float pcc12 = pcc1 + pcc2;			
  			float p1 = clacW(pcc12,pc,pck);
  
  			float pcc3 = getProb(k,c1);
  			float pcc4 = getProb(k,c2);			
  			float pcc34 = pcc3 + pcc4;			
  			float p2 = clacW(pcc34,pck,pc);
  			w =  p1 + p2;
  		}
  		return w;
  	}