Package org.speakright.sro

Examples of org.speakright.sro.SRONumber


  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}"));
View Full Code Here

TOP

Related Classes of org.speakright.sro.SRONumber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.