public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output,Reporter reporter)
            throws IOException {
    	
        String line = value.toString();
        String[] words = line.split(",");
        
        int flag = 0, i = 0;
    	
    	for(i=0;i<MAX_RULE && flag==0;i++)
    	{
    		flag = 1;
    		for(int j=0;j<rule[i].length && flag==1;j++)
    		{
    			if(words[rule[i].num[j]].equals(rule[i].val[j]))
    				flag = 1;
    			else 
    				flag = 0;
    		}
    	}
	
    	if(flag == 1)
    	{
    		if(words[0].equals(rule[i-1].class_name))
    		{
    			word.set("rpos"+(i-1));
    			output.collect(word, one);
    			word.set("pos");
    			output.collect(word, one);
    		}
    		else
    		{
    			word.set("rneg"+(i-1));
    			output.collect(word, one);
    			word.set("neg");
    			output.collect(word, one);
    		}
    	}
    	else
    	{
    		if(words[0].equals("e"))
    		{
    			word.set("pos");
    			output.collect(word, one);
    		}
    		else
    		{
    			word.set("neg");
    			output.collect(word, one);
    		}
    	}
    }