test_learning

This commit is contained in:
s464786 2024-06-04 11:43:14 +02:00
parent a2e2dd4e23
commit 7a39f24359

View File

@ -11,7 +11,8 @@ for file_name in os.listdir(translated_data_directory):
if file_name.endswith('.tsv'):
file_path = os.path.join(translated_data_directory, file_name)
df = pd.read_csv(file_path, sep='\t')
dfs.append(df)
df_user = df[df['role'] == 'system'].drop('role', axis=1)
dfs.append(df_user)
combined_df = pd.concat(dfs, ignore_index=True)
# Przygotowanie zbioru danych do trenowania