Update tmp.py
Browse files
tmp.py
CHANGED
|
@@ -1,12 +1,6 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
df_list = []
|
| 8 |
-
for parq_path in parq_files_list:
|
| 9 |
-
df = pd.read_parquet(parq_path)
|
| 10 |
-
df_list.append(df)
|
| 11 |
-
data_df = pd.concat(df_list)
|
| 12 |
-
data_df.to_csv(f'path to csv/{data_name}.csv')
|
|
|
|
| 1 |
+
def find_missing_elements(nlp_pred, segment_llm_response):
|
| 2 |
+
missing_elements = [item for item in nlp_pred if item not in segment_llm_response]
|
| 3 |
+
if missing_elements:
|
| 4 |
+
return f"The following elements are missing: {missing_elements}"
|
| 5 |
+
else:
|
| 6 |
+
return "All elements from nlp_pred are found in segment_llm_response."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|