public static void main(String[] args) {
		//ExtractionService extractor = new ExtractionService();
		
		CoreNlpParser parser = new CoreNlpParser();
		
		String sentence = "A rare black squirrel has become a regular visitor to a suburban garden";
		
		Tree root = parser.parseAndRemovePeriods(sentence)[0];

		List<Triplet> output = parser.parseText(sentence);

		if(output.size() == 0)
			System.err.println("ERROR: Could not find triplet");
		else {
			for(Triplet out : output) {
				System.out.println( out.toString() );
			}
		}

		String testString = "Now is the time for all good men to come to the aid of their country.  Sam has a fork. A rare black squirrel has become a regular visitor to a suburban garden.";
		
		List<SemanticGraph> dependencies = parser.getTextDependencyTree(testString);
		
		if(dependencies.size() == 0)
			System.err.println("ERROR: Could not find dependencies");
		else {
			
			for(SemanticGraph graph : dependencies) {

				System.out.println("Graph:");
				System.out.println(graph.toString());

				Collection<IndexedWord> roots = graph.getRoots();
				
				for(IndexedWord r : roots) {
					System.out.println("Root:");
					System.out.println(r.toString() );
					System.out.println("Child Pairs:");
					System.out.println(graph.childPairs(r).toString() );					
				}
				
				System.out.println();
				
				System.out.println(graph.toString() );
				System.out.println(graph.toDotFormat() );
				System.out.println(graph.getRoots().toString());
				System.out.println(graph.childRelns(graph.getFirstRoot()).toString() );
				System.out.println(graph.childPairs(graph.getFirstRoot()).toString() );
				System.out.println(graph.getEdgeSet().toString());
				System.out.println(graph.vertexSet().toString());
			}
		}

	}