return type.toString();
}
private void processSentence(String text) {
Sentence sentence = ConversationParser.parse(text);
tfTrimmed.setText(sentence.getTrimmedText());
tfNormalized.setText(sentence.getNormalized());
tfToString.setText(sentence.toString());
tfTrigger.setText(sentence.getTriggerExpression().toString());
String subj = sentence.getSubjectName();
tfSubject.setText(subj != null ? subj :
"[" + sentence.getSubjectCount() + " subjects]");
String verb = sentence.getVerbString();
tfVerb.setText(verb != null ? verb :
"[" + sentence.getVerbCount() + " verbs]");
Expression num = sentence.getNumeral();
tfNumeral.setText(num != null ? num.getNormalized() :
"[" + sentence.getNumeralCount() + " numerals]");
String obj = sentence.getObjectName();
tfObject.setText(obj != null ? obj :
"[" + sentence.getObjectCount() + " objects]");
HTMLDocument d = initHtml(tpExpressions);
int unknown = 0;
for (Expression e : sentence) {