Spaces:
Sleeping
Sleeping
seawolf2357
commited on
Commit
โข
c0f1be6
1
Parent(s):
5f153c4
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def load_optimized_dataset(data_files):
|
|
29 |
data_frames = [pd.read_csv(file) for file in data_files]
|
30 |
full_data = pd.concat(data_frames, ignore_index=True)
|
31 |
# ์ฌ๊ฑด๋ช
์ ํค๋ก ํ๊ณ ์ฌ๊ฑด๋ฒํธ์ ์ ๋ฌธ์ ์ ์ฅํ๋ ๋์
๋๋ฆฌ ์์ฑ
|
32 |
-
name_to_number = full_data.groupby('
|
33 |
number_to_fulltext = full_data.set_index('์ฌ๊ฑด๋ฒํธ')['์ ๋ฌธ'].to_dict()
|
34 |
return name_to_number, number_to_fulltext
|
35 |
|
|
|
29 |
data_frames = [pd.read_csv(file) for file in data_files]
|
30 |
full_data = pd.concat(data_frames, ignore_index=True)
|
31 |
# ์ฌ๊ฑด๋ช
์ ํค๋ก ํ๊ณ ์ฌ๊ฑด๋ฒํธ์ ์ ๋ฌธ์ ์ ์ฅํ๋ ๋์
๋๋ฆฌ ์์ฑ
|
32 |
+
name_to_number = full_data.groupby('ํ์์ฌํญ')['์ฌ๊ฑด๋ฒํธ'].apply(list).to_dict()
|
33 |
number_to_fulltext = full_data.set_index('์ฌ๊ฑด๋ฒํธ')['์ ๋ฌธ'].to_dict()
|
34 |
return name_to_number, number_to_fulltext
|
35 |
|