Skip to content

Commit

Permalink
traffic analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
awanishg committed Jan 12, 2025
1 parent 8f9b680 commit 6cca839
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 82 deletions.
2 changes: 2 additions & 0 deletions artificial-intelligence/chatbot/code/mpt_bot/data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ rules:
- intent: list_all_stations
- action: action_list_all_stations

#Awanish ---start
- rule: find traffic data between locations
steps:
- intent: ask_traffic_location
Expand All @@ -106,6 +107,7 @@ rules:
steps:
- intent: ask_traffic
- action: action_fetch_traffic
#awanish----end

#AlexT - P2
- rule: Respond to next bus query
Expand Down
27 changes: 4 additions & 23 deletions artificial-intelligence/chatbot/code/mpt_bot/data/stories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ stories:
- transport_mode
- action: action_find_best_route


- story: Find best train route between two stations
steps:
- intent: find_best_route
entities:
- station_a
- station_b
- transport_mode
- action: action_find_best_route

- story: Ask for direct train route
steps:
- intent: ask_direct_route
Expand Down Expand Up @@ -133,19 +123,6 @@ stories:

- story: Find next tram
steps:
- intent: find_next_tram
- action: action_find_next_tram

- story: Find next bus
steps:
- intent: find_next_bus
- action: action_find_next_bus


- story: User asks about traffic
steps:
- intent: ask_user_about_location_for_traffic
- action: action_fetch_traffic
- intent: find_next_tram
entities:
- station_a
Expand Down Expand Up @@ -270,3 +247,7 @@ stories:
- action: action_check_direct_tram_route
#jubal stories (end)--------------------------------------------------------------------

- story: User asks about traffic
steps:
- intent: ask_user_about_location_for_traffic
- action: action_fetch_traffic
98 changes: 39 additions & 59 deletions artificial-intelligence/chatbot/code/mpt_bot/domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ intents:
- list_all_stations
- nlu_fallback
- list_stations_with_feature
- ask_traffic
- ask_traffic_location

#Jubal intents (start) -------------------------------------------
- ask_tram_route
- ask_tram_route_with_transfers
#Jubal intents (start) -------------------------------------------
- ask_traffic
- ask_traffic_location

entities:
# Alex Start entities -----------------------------------------------------------
Expand Down Expand Up @@ -238,59 +237,40 @@ responses:


actions:
- action_generate_tram_map
- action_generate_bus_map
- action_find_next_tram
- action_find_next_bus
- action_find_next_train
- action_generate_map
- action_find_best_route
- action_check_direct_route
- action_calculate_transfers
- action_find_best_route_with_transfers
- action_find_route_with_least_stops
- action_generate_route_map
- action_run_direction_script
- action_check_feature
- action_check_station
- action_list_all_stations
- action_list_stations_with_feature
- action_fetch_traffic
- action_fetch_traffic_location


# Alex Start Actions -----------------------------------------------------------
- action_generate_train_map
- action_generate_tram_map
- action_generate_bus_map
- action_find_next_train
- action_find_next_tram
- action_find_next_bus
- action_find_best_route
- action_calculate_transfers
- action_check_direct_route
- action_find_best_route_with_transfers
- action_check_train_change
- action_find_route_with_least_stops
- action_generate_route_map
- action_check_disruptions_tram
- action_check_disruptions_bus
- action_check_disruptions_train
- validate_transport_mode
# Alex Finish Actions -----------------------------------------------------------
# Ross Start actions
- action_find_user_address
- action_find_nearest_station
- action_find_nearest_tram_stop
- action_find_nearest_bus_stop
- action_map_transport_in_area
# Ross finish Actions
- action_run_direction_script
- action_check_feature
- action_check_station
- action_list_all_stations
- action_list_stations_with_feature
#Jubal actions (start) -------------------------------------------
- action_check_direct_tram_route
- action_find_tram_route_with_transfers
#Jubal actions (end) -------------------------------------------
# Alex Start Actions -----------------------------------------------------------
- action_generate_train_map
- action_generate_tram_map
- action_generate_bus_map
- action_find_next_train
- action_find_next_tram
- action_find_next_bus
- action_find_best_route
- action_calculate_transfers
- action_check_direct_route
- action_find_best_route_with_transfers
- action_check_train_change
- action_find_route_with_least_stops
- action_generate_route_map
- action_check_disruptions_tram
- action_check_disruptions_bus
- action_check_disruptions_train
- validate_transport_mode
# Alex Finish Actions -----------------------------------------------------------
# Ross Start actions
- action_find_user_address
- action_find_nearest_station
- action_find_nearest_tram_stop
- action_find_nearest_bus_stop
- action_map_transport_in_area
# Ross finish Actions
- action_run_direction_script
- action_check_feature
- action_check_station
- action_list_all_stations
- action_list_stations_with_feature
#Jubal actions (start) -------------------------------------------
- action_check_direct_tram_route
- action_find_tram_route_with_transfers
#Jubal actions (end) -------------------------------------------
- action_fetch_traffic
- action_fetch_traffic_location

0 comments on commit 6cca839

Please sign in to comment.