Package kpi.asoiu.parsers

Examples of kpi.asoiu.parsers.ParseText


    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. " +
View Full Code Here


    }

    private ModelFactory() {
        try {
            parseSentence = new ParseSentence();
            parseText = new ParseText();
            parsePhrase = new ParsePhrase();
        } catch (IOException e) {

            e.printStackTrace()//ToDo DO THIS!!!
        }
View Full Code Here

TOP

Related Classes of kpi.asoiu.parsers.ParseText

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.