private HashMap<String, Integer> getAttributesFromFile(File attFile) {

		BufferedReader br = null;

		try {

			String sCurrentLine;

			HashMap<String, Integer> data = new HashMap<>();
			br = new BufferedReader(new FileReader(attFile));

			while ((sCurrentLine = br.readLine()) != null) {
				try {
					if (!sCurrentLine
							.contains("Attribute Name,Element Used,Attribute Value,Frequency")) {

						String[] attributes = sCurrentLine.split(",");

						String attName = attributes[0];
						String element = attributes[1];
						String value = attributes[2];
						String freq = attributes[3];
						int frequency = Integer.parseInt(freq);

						data.put(attName + "," + element + "," + value,
								frequency);
					}
				} catch (ArrayIndexOutOfBoundsException ex) {
					continue;
				}
				/*
				 * if (sCurrentLine.contains("Attribute_Name")) {
				 * 
				 * attName = sCurrentLine.substring( sCurrentLine.indexOf(":") +
				 * 1, sCurrentLine.indexOf(","));
				 * 
				 * }
				 */

			}

			return data;

		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				if (br != null)
					br.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}
		return null;
	}