private void uniqueinmap() throws FileNotFoundException, IOException {
        FileInputStream fstream = new FileInputStream("C:\\Users\\ANKI\\Documents\\NetBeansProjects\\keywords\\src\\keywords\\rules1");
        DataInputStream in = new DataInputStream(fstream);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String word;
        int u = 0;
        int an = 0,co = 0;
        while ((word = br.readLine()) != null) {
            if ( u == 0 ){
                String[] result = word.split("\\s");
                for ( int i = 0; i < result.length; i++){
                    if ( !antecedent.containsKey(result[i])){
                        antecedent.put(result[i], an++);
                        
                        //System.out.println ( result[i] + " " + an);
                    }
                }
                u = 1;
            }else if ( u == 1 ){
                String[] result = word.split("\\s");
                for ( int i = 0; i < result.length; i++){
                    if ( !consequent.containsKey(result[i])){
                        consequent.put(result[i], co++);
                        //System.out.println ( result[i] + " " + co);
                    }
                }
                u = 2;
            }else if ( u == 2){
                u = 0;
            }
        }
    }