private void getBigramModel(String trainfile) throws FileNotFoundException {
		File file = new File(trainfile);
		Scanner scanner = new Scanner(new BufferedReader(new FileReader(file)));

		while (scanner.hasNextLine()) {
			String line = "#START# " + scanner.nextLine().trim() + " #END#";
			String[] temp = line.split(" ");
			for (int i = 0; i < temp.length - 2; i++) {
				String string = temp[i] + " " + temp[i + 1];
				Integer count = bigramCnt.get(string);
				bigramCnt.put(string, (count == null) ? 1 : count + 1);
			}
		}

		for (Map.Entry<String, Integer> entry : bigramCnt.entrySet()) {
			String bigram = entry.getKey();
			String fore = bigram.split(" ")[0];
			String hind = bigram.split(" ")[1];
			Integer bigramcount = entry.getValue();
			this.bigrammodel.put(bigram,
					(bigramcount + this.unigrammodel.get(hind))
							/ (this.unigramCnt.get(fore) + 1));
		}

	}