def create(): return Folder( label="Concepts", children=[ StyleConcept.create(), ColorConcept.create(), CDHFolder.create(), Concept(grammar=GenericGrammar.create_hello()), Concept(grammar=GenericGrammar.create_yes_goodbye()), Concept(grammar=GenericGrammar.create_ok_thanks()), Concept(grammar=GenericGrammar.create_yes_full()), Concept(grammar=GenericGrammar.no()), Concept(grammar=GenericGrammar.create_haha()), Concept(grammar=GenericGrammar.create_sorry()), Concept(grammar=GenericGrammar.create_you()), Concept( grammar=Grammar( watson_items=[ "movie", "movies", "film", "films", "flick", "flicks" ] ) ), Concept( grammar=Grammar( watson_items=[ "theater", "theaters", "theatre", "theatres", "cinema", "cinemas" ] ) ), Concept( grammar=Grammar( watson_items=[ "showtime", "showtimes", "show time", "show times", "movie time", "movie times" ] ) ), Concept( grammar=Grammar( watson_items=[ "dining", "restaurant", "restaurants", "place to eat", "places to eat", "diner", "diners", "cafe", "cafes", "cafeteria", "cafeterias", "Bar", "Bars", "Pub", "Pubs", "Tavern", "Taverns", "Brewery", "Breweries", "somewhere to eat", "eatery", "place to dine", "somewhere nice to eat", "eateries", "places to dine", "bistro", "a bistro", "bistros", "coffee shop", "coffee shops", "coffee place", "coffee places", "eating house", "eating houses", "snack bar", "snack bars", "juice bar", "juice bars", "health food shop", "fast food outlet", "fast food shop", "fast food outlets", "fast food shops", "food court", "food courts", "food mall", "food malls" ] ), _id="concept_place_to_eat" ), Concept( grammar=Grammar( watson_items=[ "weather", "Rain", "Raining", "Snow", "Snowing", "Sunny", "Cloudy", "Sleet", "Freezing Rain", "Windy", "Tornado", "Hurricane" ] ), _id="concept_weather" ), Concept( grammar=Grammar( watson_items=[ "traffic", "Traffic conditions", "Driving conditions", "Road conditions", "Streets", "Roads", "Freeways", "Highways", "Driving", "Rush hour", "Bus", "Buses", "Train", "Trains", "Car", "Cars", "Automobile", "Automobiles", "Bicycle", "Bicycles", "Bike", "Bikes", "Motorcycle", "Motorcycles", "Walking", "Driving", "Pedestrian" ] ), _id="concept_2456118" ), Concept( grammar=Grammar( watson_items=[ "what is", "what's" ] ) ), Concept( grammar=Grammar( watson_items=[ "Review", "Reviews", "Critique", "Critiques", "Popularity", "Tomatoes", "stars" ] ) ), Concept( grammar=Grammar( watson_items=[ "Ratings", "Rating", "Popularity", "Tomatoes", "stars" ] ) ), Concept( grammar=Grammar( watson_items=[ "it", "that", "Popularity", "Tomatoes", "stars" ] ) ), Concept( grammar=Grammar( watson_items=[ "family-friendly", "family", "child", "children", "childrens", "children's", "kiddy", "kids", "kid's", "kid", "family friendly", "family safe", "kid friendly", "child friendly", "safe for kids", "kid safe", "suitable for children", "suitable for kids", "suitable for a child", "suitable for a kid", "child appropriate", "appropriate for children", "not adult", "for families", "for a family", "no sex", "no violence", "clean" ] ), _id="concept_family_friendly" ), Concept( grammar=Grammar( watson_items=[ "near me", "by me", "my area", "close to me", "close by", "nearby", "in the neighborhood", "local", "locally", "fairly close", "close to us", "near to us", "short drive", "short walk", "a short drive", "a short walk", "close", "near", "around the corner", "just around the corner", "short distance", "a short distance", "close at hand", "short distance awat", "a short distance away", "walking distance", "within walking distance", "not a long distance", "not far", "not too far", "not far away", "not too far away", "in my area", "in the city", "my zipcode", "dowtown" ] ) ), Concept( grammar=Grammar( watson_items=[ "Adult", "Adults Only", "NC 17", "NC-17", "NC17", "NC 17 rated", "NC-17 rated", "NC-17-rated", "NC 17-rated", "NC17 rated", "NC17-rated", "X", "X-rated", "X rated", "XXX", "XXX-rated", "XXX rated", "Triple X", "Triple X-rated", "Triple X rated", "NC seventeen", "NC-seventeen" ] ), _id="concept_porn" ) ] )
def create(): return Folder( label="Concepts", children=[ StyleConcept.create(), ColorConcept.create(), CDHFolder.create(), Concept(grammar=GenericGrammar.create_hello()), Concept(grammar=GenericGrammar.create_yes_goodbye()), Concept(grammar=GenericGrammar.create_ok_thanks()), Concept(grammar=GenericGrammar.create_yes_full()), Concept(grammar=GenericGrammar.no()), Concept(grammar=GenericGrammar.create_haha()), Concept(grammar=GenericGrammar.create_sorry()), Concept(grammar=GenericGrammar.create_you()), Concept(grammar=Grammar(watson_items=[ "movie", "movies", "film", "films", "flick", "flicks" ])), Concept(grammar=Grammar(watson_items=[ "theater", "theaters", "theatre", "theatres", "cinema", "cinemas" ])), Concept(grammar=Grammar(watson_items=[ "showtime", "showtimes", "show time", "show times", "movie time", "movie times" ])), Concept(grammar=Grammar(watson_items=[ "dining", "restaurant", "restaurants", "place to eat", "places to eat", "diner", "diners", "cafe", "cafes", "cafeteria", "cafeterias", "Bar", "Bars", "Pub", "Pubs", "Tavern", "Taverns", "Brewery", "Breweries", "somewhere to eat", "eatery", "place to dine", "somewhere nice to eat", "eateries", "places to dine", "bistro", "a bistro", "bistros", "coffee shop", "coffee shops", "coffee place", "coffee places", "eating house", "eating houses", "snack bar", "snack bars", "juice bar", "juice bars", "health food shop", "fast food outlet", "fast food shop", "fast food outlets", "fast food shops", "food court", "food courts", "food mall", "food malls" ]), _id="concept_place_to_eat"), Concept(grammar=Grammar(watson_items=[ "weather", "Rain", "Raining", "Snow", "Snowing", "Sunny", "Cloudy", "Sleet", "Freezing Rain", "Windy", "Tornado", "Hurricane" ]), _id="concept_weather"), Concept(grammar=Grammar(watson_items=[ "traffic", "Traffic conditions", "Driving conditions", "Road conditions", "Streets", "Roads", "Freeways", "Highways", "Driving", "Rush hour", "Bus", "Buses", "Train", "Trains", "Car", "Cars", "Automobile", "Automobiles", "Bicycle", "Bicycles", "Bike", "Bikes", "Motorcycle", "Motorcycles", "Walking", "Driving", "Pedestrian" ]), _id="concept_2456118"), Concept(grammar=Grammar(watson_items=["what is", "what's"])), Concept(grammar=Grammar(watson_items=[ "Review", "Reviews", "Critique", "Critiques", "Popularity", "Tomatoes", "stars" ])), Concept(grammar=Grammar(watson_items=[ "Ratings", "Rating", "Popularity", "Tomatoes", "stars" ])), Concept(grammar=Grammar(watson_items=[ "it", "that", "Popularity", "Tomatoes", "stars" ])), Concept(grammar=Grammar(watson_items=[ "family-friendly", "family", "child", "children", "childrens", "children's", "kiddy", "kids", "kid's", "kid", "family friendly", "family safe", "kid friendly", "child friendly", "safe for kids", "kid safe", "suitable for children", "suitable for kids", "suitable for a child", "suitable for a kid", "child appropriate", "appropriate for children", "not adult", "for families", "for a family", "no sex", "no violence", "clean" ]), _id="concept_family_friendly"), Concept(grammar=Grammar(watson_items=[ "near me", "by me", "my area", "close to me", "close by", "nearby", "in the neighborhood", "local", "locally", "fairly close", "close to us", "near to us", "short drive", "short walk", "a short drive", "a short walk", "close", "near", "around the corner", "just around the corner", "short distance", "a short distance", "close at hand", "short distance awat", "a short distance away", "walking distance", "within walking distance", "not a long distance", "not far", "not too far", "not far away", "not too far away", "in my area", "in the city", "my zipcode", "dowtown" ])), Concept(grammar=Grammar(watson_items=[ "Adult", "Adults Only", "NC 17", "NC-17", "NC17", "NC 17 rated", "NC-17 rated", "NC-17-rated", "NC 17-rated", "NC17 rated", "NC17-rated", "X", "X-rated", "X rated", "XXX", "XXX-rated", "XXX rated", "Triple X", "Triple X-rated", "Triple X rated", "NC seventeen", "NC-seventeen" ]), _id="concept_porn") ])
def create(): return Folder( selection_type="RANDOM", label="OPENING SEQUENCES", children=[ Input( GenericGrammar.create_hello(), children=[ GreetingAction.create_increment(), If( elements=[ Condition(name=NAME_TERMINAL_EXCHANGE, operator="EQUAL_TO_YES"), Goto(ref="output_welcome_back") ] ), If( match_type="ANY", elements=[ Condition(name=NAME_GREETING_COUNT, operator="GREATER_THEN", root_text="2"), Condition(name=NAME_SMALL_TALK_COUNT, operator="GREATER_THEN", root_text="2"), Goto(ref="output_end_of_small_talk") ] ), Output( Prompt( items=[ "Hello.", "Hi.", "Hi there." ] ), children=[Output( _id="output_how_are_you", prompt=Prompt( items=[ "How are you today?", "How are you feeling today?", "How is it going?" ] ), children=[GetUserInput( children=[ Input( Grammar( watson_items=[ "Movies", "$ (STYLE)={Style_Preference}", "$ (COLOR)={Color_Preference}", "$ movies" ] ), children=[ Goto(ref="input_main_search_criteria") ] ), Input( FeelingGrammar.create_not_so_good(), children=[ Goto(ref="output_sorry_to_hear_that") ] ), Input( FeelingGrammar.create_not_so_bad(), children=[ Goto(ref="output_good_to_hear") ] ), Input( FeelingGrammar.create_feeling_fine(), children=[ Output( _id="output_good_to_hear", prompt=Prompt( items=[ "Good to hear! <br> <br>"] ), children=[HowCanHelpYouOutput.goto()] ) ] ), Input( FeelingGrammar.create_feeling_great(), children=[ Output( Prompt( items=[ "Fantastic! So glad to hear it. <br> <br>"] ), children=[HowCanHelpYouOutput.goto()] ) ] ), Input( FeelingGrammar.create_feeling_bad(), children=[ Output( _id="output_sorry_to_hear_that", prompt=Prompt( items=[ "I'm sorry to hear that. <br> <br>"] ), children=[HowCanHelpYouOutput.goto()] ) ] ), PreliminarySequencesSearch.goto() ] ) ] )] ) ] ), Input( Grammar( watson_items=[ "How are you", "$ how have you been doing", "$ how is it going", "$ how are you", "$ what's shaking", "$ what's up" ] ), children=[ GreetingAction.create_increment(), If( elements=[ Condition(name=NAME_GREETING_COUNT, operator="GREATER_THEN", root_text="2"), Condition(name=NAME_SMALL_TALK_COUNT, operator="GREATER_THEN", root_text="2"), Output( _id="output_end_of_small_talk", prompt=Prompt( items=[ "You're very polite, but don't you want me to look up movies for you?"] ), children=[GetUserInput( children=[ Input( GenericGrammar.yes(), children=[ StylePreferenceProfileCheck.goto() ] ), Input( GenericGrammar.no(), children=[ GreetingAction.reset(), Output( GenericPrompt.ok_fine() ) ] ), Input( GenericGrammar.ok(), children=[ StylePreferenceProfileCheck.goto() ] ), PreliminarySequencesSearch.goto() ] ) ] ) ] ), Input( Grammar( watson_items=[ "Fine", "$ excellent", "$ outstanding", "$ fabulous", "$ terrific", "$ not good", "$ not so good", "$ not well", "$ not so well", "$ terrible", "$ awful", "$ worst", "$ bored", "$ sad", "$ good", "$ well", "$ fine", "$ thirsty", "$ hungry", "$ tired" ] ), children=[ Output( Prompt(items=["I am doing well, thanks."]), children=[HowCanHelpYouOutput.goto()] ) ] ), Output( Prompt(items=["I am doing well, thanks."]), children=[Goto(ref="output_how_are_you")] ) ] ), Input( Grammar( watson_items=[ "Nice to meet you", "$ nice to meet you", "$ pleasure to meet you", "$ make your acquaintance" ] ), children=[ If( elements=[ Condition(name="Greeting_Count", operator="GREATER_THEN", root_text="2"), Output( Prompt( items=[ "You're very polite, but don't you want me to look up movies for you?"] ), children=[GetUserInput( children=[ Input( GenericGrammar.yes(), children=[ StylePreferenceProfileCheck.goto() ] ), Input( GenericGrammar.no(), children=[ GreetingAction.reset(), Output( GenericPrompt.ok_fine() ) ] ), Input( GenericGrammar.ok(), children=[ StylePreferenceProfileCheck.goto() ] ), PreliminarySequencesSearch.goto() ] ) ] ) ] ), Output( Prompt(items=["Nice to meet you too, {User_Name}!"]), children=[HowCanHelpYouOutput.goto()] ) ] ) ] )
def create(): return Folder( selection_type="RANDOM", label="OPENING SEQUENCES", children=[ Input( GenericGrammar.create_hello(), children=[ GreetingAction.create_increment(), If(elements=[ Condition(name=NAME_TERMINAL_EXCHANGE, operator="EQUAL_TO_YES"), Goto(ref="output_welcome_back") ]), If(match_type="ANY", elements=[ Condition(name=NAME_GREETING_COUNT, operator="GREATER_THEN", root_text="2"), Condition(name=NAME_SMALL_TALK_COUNT, operator="GREATER_THEN", root_text="2"), Goto(ref="output_end_of_small_talk") ]), Output( Prompt(items=["Hello.", "Hi.", "Hi there."]), children=[ Output( _id="output_how_are_you", prompt=Prompt(items=[ "How are you today?", "How are you feeling today?", "How is it going?" ]), children=[ GetUserInput(children=[ Input(Grammar(watson_items=[ "Movies", "$ (STYLE)={Style_Preference}", "$ (COLOR)={Color_Preference}", "$ movies" ]), children=[ Goto( ref= "input_main_search_criteria" ) ]), Input( FeelingGrammar. create_not_so_good(), children=[ Goto( ref= "output_sorry_to_hear_that" ) ]), Input( FeelingGrammar. create_not_so_bad(), children=[ Goto(ref= "output_good_to_hear") ]), Input( FeelingGrammar. create_feeling_fine(), children=[ Output( _id= "output_good_to_hear", prompt=Prompt(items=[ "Good to hear! <br> <br>" ]), children=[ HowCanHelpYouOutput .goto() ]) ]), Input( FeelingGrammar. create_feeling_great(), children=[ Output(Prompt(items=[ "Fantastic! So glad to hear it. <br> <br>" ]), children=[ HowCanHelpYouOutput .goto() ]) ]), Input( FeelingGrammar. create_feeling_bad(), children=[ Output( _id= "output_sorry_to_hear_that", prompt=Prompt(items=[ "I'm sorry to hear that. <br> <br>" ]), children=[ HowCanHelpYouOutput .goto() ]) ]), PreliminarySequencesSearch.goto() ]) ]) ]) ]), Input( Grammar(watson_items=[ "How are you", "$ how have you been doing", "$ how is it going", "$ how are you", "$ what's shaking", "$ what's up" ]), children=[ GreetingAction.create_increment(), If(elements=[ Condition(name=NAME_GREETING_COUNT, operator="GREATER_THEN", root_text="2"), Condition(name=NAME_SMALL_TALK_COUNT, operator="GREATER_THEN", root_text="2"), Output( _id="output_end_of_small_talk", prompt=Prompt(items=[ "You're very polite, but don't you want me to look up movies for you?" ]), children=[ GetUserInput(children=[ Input(GenericGrammar.yes(), children=[ StylePreferenceProfileCheck. goto() ]), Input(GenericGrammar.no(), children=[ GreetingAction.reset(), Output( GenericPrompt.ok_fine()) ]), Input(GenericGrammar.ok(), children=[ StylePreferenceProfileCheck. goto() ]), PreliminarySequencesSearch.goto() ]) ]) ]), Input(Grammar(watson_items=[ "Fine", "$ excellent", "$ outstanding", "$ fabulous", "$ terrific", "$ not good", "$ not so good", "$ not well", "$ not so well", "$ terrible", "$ awful", "$ worst", "$ bored", "$ sad", "$ good", "$ well", "$ fine", "$ thirsty", "$ hungry", "$ tired" ]), children=[ Output(Prompt( items=["I am doing well, thanks."]), children=[HowCanHelpYouOutput.goto()]) ]), Output(Prompt(items=["I am doing well, thanks."]), children=[Goto(ref="output_how_are_you")]) ]), Input( Grammar(watson_items=[ "Nice to meet you", "$ nice to meet you", "$ pleasure to meet you", "$ make your acquaintance" ]), children=[ If(elements=[ Condition(name="Greeting_Count", operator="GREATER_THEN", root_text="2"), Output(Prompt(items=[ "You're very polite, but don't you want me to look up movies for you?" ]), children=[ GetUserInput(children=[ Input( GenericGrammar.yes(), children=[ StylePreferenceProfileCheck. goto() ]), Input(GenericGrammar.no(), children=[ GreetingAction.reset(), Output(GenericPrompt. ok_fine()) ]), Input( GenericGrammar.ok(), children=[ StylePreferenceProfileCheck. goto() ]), PreliminarySequencesSearch.goto() ]) ]) ]), Output(Prompt( items=["Nice to meet you too, {User_Name}!"]), children=[HowCanHelpYouOutput.goto()]) ]) ])