public void _init(){
		String[] tags = dp.tags;
		List<String[]> wordsList = dp.lableDataWords;
		List<String> temp = new ArrayList<String>();
		for(int i=0;i<wordsList.size();i++){
			temp.clear();
			String[] words = wordsList.get(i);
			String tag = tags[i];
			for(String s : words){
				if(temp.contains(s)) continue;
				int row = wordFlag.get(s);
				int column = classFlag.get(tag);
				wordCount.set(row, column, wordCount.get(row, column)+1);
				temp.add(s);
			}
		}
		
		for(String tag : tags){
			int idx = classFlag.get(tag);
			classCount.set(0, idx, classCount.get(0, idx)+1);
		}
		
		int sampleCount = tags.length;
		double base = (double)1/(double)sampleCount;
		classPriorPro = classCount.times(base);
	}