public static SRApp createApp(boolean addConfirmer, boolean useNBestConfirmer)
{
SRApp flow = new SRApp();
// SROQuantity qflow = new SROQuantity("bottles", 1, 10);
SRONumber qflow = new SRONumber("bottles", 1, 10);
m_sroNum = qflow;
qflow.setName("SROQuantity");
qflow.setModelVar("city");
if (addConfirmer) {
if (useNBestConfirmer) {
//qflow.setConfirmer(new SROConfirmNBest("wine"));
qflow.enableNBest(4); //adds SROConfirmNBest
}
else {
qflow.setConfirmer(new SROConfirmYesNo("wine"));
}
}
flow.add(qflow);
flow.add(new PFlow("You said {$INPUT}"));