Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- intent response Pid
- PizzaDelivery What Pizza do you like? 1.4.6
- WeatherForecast What do you want to know the weather? 2
- Emergency Number Dial 911 10.8.9
- intent response
- PizzaDelivery I want to order a pizza
- WeatherForecast What's the weather in Manila
- Emergency Number What's the number to dial?
- row_list = []
- for index,row in intentdatas.iterrows():
- if ([re.search("1",index) is not None for index in
- finalchat['Pid'].astype(str).str[0]] == 'TRUE'):
- row_list.append({'intent': row['intent'], 'phrases': row['phrases'],
- 'Team': 'Pizza'})
- elif ([re.search("2",index) is not None for index in
- finalchat['Pid'].astype(str).str[0]] == 'TRUE'):
- row_list.append({'intent': row['intent'], 'phrases': row['phrases'],
- 'Team': 'Weather'})
- elif ([re.search("10",index) is not None for index in
- finalchat['Pid'].astype(str).str[1]] == 'TRUE'):
- row_list.append({'intent': row['intent'], 'phrases': row['phrases'],
- 'Team': 'Emergency'})
- intentdatas.head(10)
- Intent Response Team
- PizzaDelivery I want to order a pizza Pizza
- WeatherForecast What's the weather in Manila Weather
- Emergency Number What's the number to dial? Emergency
Add Comment
Please, Sign In to add comment