public HashMap<Integer, Double> constructLMSpVct(String[] tokens){
		int lmIndex = 0;
		double lmValue = 0;
		HashMap<Integer, Double> lmVct = new HashMap<Integer, Double>();//Collect the index and counts of projected features.	

		// We assume we always have the features loaded beforehand.
		for(int i = 0; i < tokens.length; i++){
			if (isLegit(tokens[i])){
				if(m_lmFeatureNameIndex.containsKey(tokens[i])){
					lmIndex = m_lmFeatureNameIndex.get(tokens[i]);
					if(lmVct.containsKey(lmIndex)){
						lmValue = lmVct.get(lmIndex) + 1;
						lmVct.put(lmIndex, lmValue);
					} else
						lmVct.put(lmIndex, 1.0);
				}
			}
		}
		return lmVct;
	}