public static void main(String[] args) {

		DataModel model = new DataModel();
		SentenceSegmentation segmentation = new SentenceSegmentation();
		List<Integer> list1 = model.getKeys1();
		for (int i = 0; i < list1.size(); i++) {
			// dohvati tekst ključa koji se nalazi na i-toj poziciji liste
			int key = list1.get(i);
			String text = model.getElement(key);
			try {
				segmentation.loadAbbreviations("Hrvatski.txt");
			} catch (UnsupportedEncodingException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			int splitPosition = segmentation.splitSearch(text);
			if (splitPosition == -1) {
				continue;
			}
			model.splitElement(key, splitPosition + 1, segmentation.safe);
			segmentation.safe = true;
			}

	}