public void print_extraction_method(Hashtable<String, LinkedList<Triple<String,String,String>>> relations) throws IOException {
		w.write("Number of relations: " + relations.size()+"\n");
		System.out.println("Number of relations: " + relations.size());
		LinkedList<Tuple<String, LinkedList<Triple<String,String,String>>>> relations_sorted = relation_sort(relations);
		for(int j = 0; j < relations_sorted.size(); j++){
			w.write("----------------------"+"\n");
			System.out.println("----------------------");
			w.write(relations_sorted.get(j).get_x() + " : " + String.valueOf(relations_sorted.get(j).get_y().size())+"\n");
			System.out.println(relations_sorted.get(j).get_x() + " : " + String.valueOf(relations_sorted.get(j).get_y().size()));
			w.write("----------------------"+"\n");
			System.out.println("----------------------");
			LinkedList<Triple<String,String,String>> list = relations_sorted.get(j).get_y();
			for(int index = 0; index < list.size(); index++){
				// x = the subject
				// y = the object
				// z = the sentence
				w.write(list.get(index).get_x()+"\n");
				System.out.println(list.get(index).get_x());
				w.write(list.get(index).get_y()+"\n");
				System.out.println(list.get(index).get_y());
				/* Replace the subject by <S> and the object by <O>
				 * Uncomment the following lines to consider patterns.
				 */
				// String pattern = extract_pattern(list.get(index).get_z(), list.get(index).get_x(), list.get(index).get_y());
				// System.out.println("pattern: "+pattern);
				// w.write("pattern: "+pattern+"\n");
				System.out.println(list.get(index).get_z());
				w.write("phrase: "+list.get(index).get_z()+"\n");
				
				w.write("...................."+"\n");
				System.out.println("....................");
			}
			w.write("----------------------"+"\n");
			System.out.println("----------------------");
		}
	}