Skip to content

Instantly share code, notes, and snippets.

@BMPixel
Last active February 18, 2024 02:02
Show Gist options
  • Save BMPixel/fd50e2e6ca9d779563d1f827cb7545a0 to your computer and use it in GitHub Desktop.
Save BMPixel/fd50e2e6ca9d779563d1f827cb7545a0 to your computer and use it in GitHub Desktop.
Given following sentences, first we choose intents of the sentences from following intent list: [atis_flight, atis_airfare, atis_ground_service, atis_abbreviation, atis_airline, atis_quantity, atis_aircraft, atis_flight_time, atis_city, atis_capacity, atis_airport, atis_flight_no, atis_distance, atis_meal, atis_ground_fare, atis_restriction, atis_cheapest].
Then, we enumerate all entities for given sentences, where slots only come from the following slot list: [fare_basis_code, depart_date.day_number, flight_time, fromloc.airport_name, aircraft_code, depart_time.start_time, arrive_date.today_relative, toloc.airport_code, stoploc.airport_name, fromloc.airport_code, transport_type, return_date.day_number, return_time.period_of_day, toloc.country_name, depart_date.today_relative, return_date.day_name, return_time.period_mod, meal, depart_date.year, depart_date.date_relative, fromloc.state_code, toloc.city_name, flight_days, arrive_time.time, arrive_date.month_name, flight_number, return_date.month_name, toloc.state_name, toloc.airport_name, compartment, arrive_time.end_time, stoploc.city_name, fare_amount, meal_code, airport_name, stoploc.state_code, depart_time.time_relative, airport_code, today_relative, state_name, arrive_date.date_relative, arrive_time.period_of_day, time_relative, return_date.date_relative, arrive_date.day_number, class_type, mod, city_name, booking_class, depart_time.period_of_day, arrive_time.time_relative, airline_name, state_code, depart_date.day_name, round_trip, day_name, depart_date.month_name, arrive_time.period_mod, arrive_date.day_name, month_name, period_of_day, stoploc.airport_code, depart_time.end_time, airline_code, depart_time.time, flight_stop, depart_time.period_mod, or, day_number, restriction_code, fromloc.city_name, flight_mod, arrive_time.start_time, fromloc.state_name, toloc.state_code, flight, days_code, meal_description, connect, return_date.today_relative, economy, cost_relative, time].
Separate different slot-value pairs with '; '. If this utterance has multiple intents, concatenate them in '; ':
Input: does continental airlines fly from denver to san francisco
Output: atis_flight : continental airlines is a airline_name entity ; denver is a fromloc.city_name entity ; san francisco is a toloc.city_name entity
Input: okay could you tell me what flight leaves dallas to san francisco by united airline
Output:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment