public static Map imageTagsFromFile(String fileName) {
        Map imagesTags = new HashMap();

        /* Set path to file */
        String filepath = System.getProperty("user.dir");
        filepath = filepath + "/src/statsemdistance/res/" + fileName;

        BufferedReader br = null;
        String line;
        String split = ",";

        try {

            br = new BufferedReader(new FileReader(filepath));
            while ((line = br.readLine()) != null) {

                /* Create an array with the strings of every line */
                String[] words = line.split(split);

                for (int i = 0; i < words.length; i++) {
                    words[i] = words[i].replace(" \"", "").replace("\"", "");
                }

                /* add the key and create internal list */
                imagesTags.put(words[0], new ArrayList());

                /* Go through the internal list and add all the tags */
                List internal = (ArrayList) imagesTags.get(words[0]);

                for (int i = 1; i < words.length; i++) {
                    /* Key already exists for the image; Search for tag in the internal list and add it */
                    internal.add(words[i]);
                }
            }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {

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

        }

        System.out.println("Reading done");
        return imagesTags;
    }