public void P3(String testfile) throws FileNotFoundException {
		LinkedList<Double> list = new LinkedList<Double>();
		File file = new File(testfile);
		Scanner scanner = new Scanner(new BufferedReader(new FileReader(file)));

		while (scanner.hasNextLine()) {
			double sum = 0;
			String line = "#START# " + scanner.nextLine().trim() + " #END#";
			String[] temp = line.split(" ");

			for (String string : temp) {
				if (this.unigrammodel_new.containsKey(string)) {
					sum += Math.log(unigrammodel_new.get(string));
				} else {
					sum += Math.log(unigrammodel_new.get("#UNBEKANNT#"));
				}
			}
			list.add(sum);
		}
		scanner.close();

		int errcnt = 0;
		for (int i = 0; i <= list.size() - 3; i = i + 2) {
			if (list.get(i) <= list.get(i + 1)) {
				errcnt++;
			}
		}
		System.out.println("Accuracy: " + (1 - ((errcnt + 0.0) / list.size())));
		System.out.println("alpha " + this.alpha);
	}