home Forums # Technical Support How to get single string output Reply To: How to get single string output

#2612

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.