public int[] getBestTranslations(int sourceWord, int transCount){
		int totalTransCount = translations[sourceWord].length;
		if(totalTransCount < transCount) transCount = totalTransCount;
		int[] bestTranslation = new int[transCount];
		double[] bestScores = new double[transCount];
		for(int i=0; i<transCount; i++){
			bestTranslation[i] = -1;
			bestScores[i] = -1f;
		}
		for(int i=0; i<totalTransCount; i++){
			double s = translations[sourceWord][i];
			for(int a=0; a<transCount; a++){
				if(s > bestScores[a]){
					for(int a2=transCount-1; a2>a; a2--){
						bestTranslation[a2] = bestTranslation[a2-1];
						bestScores[a2] = bestScores[a2-1];
					}
					bestTranslation[a] = i;
					bestScores[a] = s;
					break;
				}
			}
		}
		return bestTranslation;
	}