diff --git a/src/dfcx_scrapi/tools/nlu_evals.py b/src/dfcx_scrapi/tools/nlu_evals.py index d8c84977..5d106747 100644 --- a/src/dfcx_scrapi/tools/nlu_evals.py +++ b/src/dfcx_scrapi/tools/nlu_evals.py @@ -244,7 +244,8 @@ def run_evals(self, df: pd.DataFrame, chunk_size: int = 300, # When a NO_MATCH occurs, the detected_intent field will be blank # this replaces with NO_MATCH string, which will allow for easier stats # calculation downstream - results.detected_intent.replace({"": "NO_MATCH"}, inplace=True) + results['detected_intent'] = results['detected_intent'].replace( + {"": "NO_MATCH"}) logging.info(f"{logsx} {eval_run_display_name} COMPLETE {logsx}")