home › Forums › # Technical Support › How to get single string output › Reply To: How to get single string output
October 3, 2017 at 11:13
#2612
Keymaster
Hi,
thanks for your post.
Maybe something like this could work:
Aggregated fuzzyOutput = engine.getOutputVariable(“snake”).fuzzyOutput();
for (Activated activated : fuzzyOutput.getTerms()){
System.out.println(String.format("%f %s", activated.getDegree(), activated.getTerm().getName()));
}
If not, please check the source code of Aggregated and Activated terms under com.fuzzylite.term.
Cheers.