Package kpi.asoiu.model

Examples of kpi.asoiu.model.Text


    }

    public List<Sentence> parse(String inputText) {
        String[] sentences = sentenceDetector.sentDetect(inputText);
        ParseSentence parseSentence = ModelFactory.getInstance().getParseSentence();
        Text text = new Text();
        for (String sentence : sentences) {
            sentence = sentence.replaceAll(",","");
            text.addSentence(parseSentence.parse(sentence));
        }
        text.postProcess();
        return text.getSentences();
    }
View Full Code Here

TOP

Related Classes of kpi.asoiu.model.Text

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.