}
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();
}