Skip to content

Commit

Permalink
Merge pull request #114 from watson-developer-cloud/zairah
Browse files Browse the repository at this point in the history
Remove response_dialog_* fields when formating log data from watson assistant
  • Loading branch information
zairahms authored Jul 15, 2021
2 parents 10d6aef + 22d9259 commit 660a000
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/assistant_improve_toolkit/computation_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,10 @@ def format_data(df):
and 'response_context_response_context_IntentCompleted' in df3.columns:
cols = ['log_id', 'response_timestamp', 'response_context_conversation_id', 'request_input', 'response_text',
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack',
'response_dialog_request_counter', 'response_dialog_turn_counter',
'response_context_response_context_IntentStarted', 'response_context_response_context_IntentCompleted']
else:
cols = ['log_id', 'response_timestamp', 'response_context_conversation_id', 'request_input', 'response_text',
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack',
'response_dialog_request_counter', 'response_dialog_turn_counter']
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack']

if 'response_nodes_visited' not in df3.columns:
df3['response_nodes_visited'] = [[] for _ in range(len(df3))]
Expand Down

0 comments on commit 660a000

Please sign in to comment.