public static void initialize(ParseMode mode) {
    	System.out.println("started");
		props = new Properties();
		if (mode == ParseMode.POS) {
			props.put("annotators", "tokenize, ssplit, pos");
		} else if (mode == ParseMode.WORD_TOKENIZE) {
			props.put("annotators", "tokenize, ssplit");
		} else if (mode == ParseMode.NONE) {
			props.put("annotators", "");
		}
		pipeline = new StanfordCoreNLP(props);
	}