import kpi.asoiu.factory.ModelFactory;
import kpi.asoiu.parsers.ParseText;
/**
* Created by IntelliJ IDEA.
* User: Dara
* Date: 25.09.11
* Time: 15:07
*/
public class Test {
public static void main(String[] args) throws Exception {
// System.out.println(rules);
ParseText pt = ModelFactory.getInstance().getParseText();
//
// pt.parse("The Istanbul meeting faces a mass of dilemmas, contradictions and complexities, with no clear way forward.\n" +
// "\n" +
// "Western leaders talk of the need to step up pressure on the regime and support the opposition. But they have no intention of intervening militarily in any way, or even backing the rebels with weaponry.\n" +
// "\n" +
// "The opposition is divided, and many of its fighters on the ground have been crushed by a ruthless crackdown. It is under pressure to accept the peace plan of Kofi Annan. The rebels know that in any talks, the balance of power will be heavily against them.\n" +
// "\n" +
// "It clearly believes it has little to fear from the Istanbul gathering.");
// pt.parse("What is the new super-food? Do you live here? ");
pt.parse("A compound sentence consists of multiple independent clauses. " +
"Dolphins live in water but they are not fish. " +
"They need air to breathe. " +
"The air consists of many elements. " +
"Dolphins can stay under the water for many minutes but then they must come up to the surface. " +
"Water is a home for dolphins. " +
"It can give them food. " +
"Some dolphins live in sea; some people live in rivers. " +
"They like warm the best. ");
// pt.parse("I am playing in a game and talking with girl. Game is called Duty. Duty is a game. Duty is a shooter. Girl is playing with baby. Baby is very small and lies into bad. Mom went to the sea. Sea is warm" );
// Sentence sentence = new Sentence();
// sentence.setText("Dolphins live in water but they are not fish ");
// sentence.addWord("Dolphins",PartsOfSentence.SUBJECT,"");
// sentence.addWord("live",PartsOfSentence.PREDICATE,"");
// sentence.addWord("water",PartsOfSentence.OBJECT,"");
// sentence.addWord("they",PartsOfSentence.SUBJECT,"PRP");
// sentence.addWord("are",PartsOfSentence.PREDICATE,"");
// sentence.addWord("not fish", PartsOfSentence.OBJECT,"");
//
// sentence.postProcess();
// System.out.println("sentence = " + sentence);
// Sentence sentence = new Sentence();
// sentence.setText("They can stay under the water for many minutes but then they must come up to the surface");
// sentence.addWord("they",PartsOfSentence.SUBJECT,"PRP");
// sentence.addWord("stay",PartsOfSentence.PREDICATE,"");
// sentence.addWord("water",PartsOfSentence.OBJECT,"");
// sentence.addWord("minutes",PartsOfSentence.OBJECT,"");
// sentence.addWord("they",PartsOfSentence.SUBJECT,"PRP");
// sentence.addWord("come",PartsOfSentence.PREDICATE,"");
// sentence.addWord("surface",PartsOfSentence.OBJECT,"");
// sentence.postProcess();
}
}