public static void main ( String[] args ) throws IOException, ClassNotFoundException {
        PosTagger posTagger = new PosTagger("/home/aditya/Downloads/stanford-postagger-2013-04-04/models/english-left3words-distsim.tagger");
        File indirectory = new File("/home/aditya/Desktop/sampleroutput/"); 
//        File indirectory = new File("/home/aditya/Desktop/author_profiling/pan_author_profiling_training_data/enoutput/");
        File[] inarray;  
        inarray=new File[10];        
        inarray=indirectory.listFiles();
        ArrayList<String> eachfile = new ArrayList<String>();       
            Date date = new Date();
            System.out.println(date);
        for (int j = 0; j < inarray.length; j++)
        {
                File path=inarray[j];
            BufferedReader br = new BufferedReader(new FileReader(path));
            String data = "";
            String c ="";
            while((c = br.readLine())!= null){
                data = data + c;
//                System.out.println(data); 
//                System.out.println("------");
            }   
            eachfile.add(data);
            String finalTag = posTagger.getTaggedSentence(eachfile.get(j).toString());
//            System.out.println(j);
//            System.out.println(finalTag);
//            System.out.println("------");
//            System.out.println(fulltag.size());
            posTagger.getFrequencies(finalTag);
        } 
        Date date2 = new Date();
            System.out.println(date2);
    }