kdsaft

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author
    Posts
  • in reply to: RuleORama and OutOfVocabulary #1031703
    kdsaft
    Participant

    Now I get it. So, can I add my vote to getting Rejecto to work with RuleORama.

    in reply to: RuleORama grammer structure #1031702
    kdsaft
    Participant

    Cool! That worked! Thank-you!

    in reply to: RuleORama grammer structure #1031698
    kdsaft
    Participant

    Ah, got it! Thank-you!!

    I tried this:

            let grammar = [
                OneOfTheseWillBeSaidOnce : [
                    [ ThisWillBeSaidOnce : [
                        [ ThisWillBeSaidOnce : ["HOW MUCH"]],
                        [ OneOfTheseWillBeSaidOnce : ["FLOUR", "SUGAR", "BUTTER"]]]],
                    [ ThisWillBeSaidOnce : [
                        [ ThisWillBeSaidOnce : ["HOW MANY"]],
                        [ OneOfTheseWillBeSaidOnce : ["EGGS", "APPLES", "PEARS"]]]]
            ]]

    with my expectation that the user could say either “How much flour/sugar/butter” OR “How many eggs/apples/pears”. However from the log it generated:

    HOW MUCH BUTTER HOW MANY APPLES
    HOW MUCH BUTTER HOW MANY EGGS
    HOW MUCH BUTTER HOW MANY PEARS
    HOW MUCH FLOUR HOW MANY APPLES
    HOW MUCH FLOUR HOW MANY EGGS
    HOW MUCH FLOUR HOW MANY PEARS
    HOW MUCH SUGAR HOW MANY APPLES
    HOW MUCH SUGAR HOW MANY EGGS
    HOW MUCH SUGAR HOW MANY PEARS

    What did I do wrong?
    thanks!
    Keith

Viewing 3 posts - 1 through 3 (of 3 total)