private int bayse(String instance)  {
        double pp1 = 0.0;
        double pp2 = 0.0;
        //Scanner scanner = null;
        BufferedReader scanner = null;
        try {
            scanner = new BufferedReader(new FileReader(new File(instance))); //new Scanner(new File(instance));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

        String line = "";
        //Scanner scanner1 = new Scanner(p);
        try {
            while ((line = scanner.readLine()) != null){
                //line = scanner.nextLine().toLowerCase(Locale.ENGLISH);
                line = line.toLowerCase();
                if(pMap1.containsKey(line)){
                    pp1 += pMap1.get(line);// Math.log(pMap1.get(line));
                }else{
                    // pp1 += Math.log(((1.0) / (tokens1 * 1.0 + (totalVal) * 1.0)));
                }

                if(pMap2.containsKey(line)){
                    pp2 += pMap2.get(line); //Math.log(pMap2.get(line));
                }else {
                    // pp2 += Math.log((1.0) / (tokens2 * 1.0 + (totalVal) * 1.0));
                }

            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        pp1 += p1;//Math.log(p1);
        pp2 += p2;//Math.log(p2);

        if(pp1 > pp2){
            System.out.println("C");
            return 1;
        }else{
            System.out.println("L");
            return 0;
        }

    }