Skip to content

Commit 6e01575

Browse files
committed
Updated folders and organized the project
1 parent 0f4b5a2 commit 6e01575

File tree

10 files changed

+6
-8
lines changed

10 files changed

+6
-8
lines changed

assets/note_taking.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

aciklamalar_d25-d28.py renamed to src/aciklamalar_d25-d28.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def extract_full_speech(text, speech_no, province, speaker):
8989

9090
for term, years in terms_and_years.items():
9191
for year in years:
92-
folder_path = f"TXTs/d{term}-y{year}_txts/"
92+
# Adjust this to your local path
93+
folder_path = f"/Volumes/PortableSSD/TPT/TXTs/d{term}-y{year}_txts/"
9394
for filepath in glob.glob(os.path.join(folder_path, "*.txt")):
9495
if filepath.endswith(("fih.txt", "gnd.txt")):
9596
continue

analyze_speech_topics.py renamed to src/analyze_speech_topics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from bertopic import BERTopic
44
import plotly.express as px
55

6-
INPUT_FILE = "speeches_clean.csv"
7-
MODEL_SAVE_PATH = "bertopic_model"
8-
TOPIC_SUMMARY_FILE = "topic_summary.csv"
6+
INPUT_FILE = "../data/speeches_clean.csv"
7+
MODEL_SAVE_PATH = "../bertopic_model"
8+
TOPIC_SUMMARY_FILE = "../data/topic_summary.csv"
99

1010
def run_topic_modeling(df: pd.DataFrame):
1111
print("⚙️ Training BERTopic model (this may take a while)...")

parliament_galaxy.py renamed to src/parliament_galaxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import plotly.graph_objects as go
44

55
# === CONFIG ===
6-
CSV_FILE = "topic_summary.csv" # 👈 change to your actual file path
6+
CSV_FILE = "../data/topic_summary.csv" # 👈 Updated path for new structure
77

88
# === LOAD DATA ===
99
df = pd.read_csv(CSV_FILE)

0 commit comments

Comments
 (0)