Appendix Code Snippets
Các đoạn mã nên đưa vào phụ lục báo cáo:
src/preprocess.py: chuẩn hóa schema, map nhãn, tạonode_id.src/split_data.py: chiatrain/val/testtheostratified split.src/extract_embeddings.py: trích xuất embedding PhoBERT cho toàn bộ tiêu đề.src/build_graph.py: xây đồ thịk-NNtừ cosine similarity.src/model_fusion.py: mô hình fusion giữa nhánh text và nhánh graph.src/train_fusion.py: vòng lặp train, early stopping và lưu checkpoint.
Có thể đặt nhãn minh họa theo dạng:
Listing A.1 Data preprocessingListing A.2 Graph constructionListing A.3 Fusion modelListing A.4 Training procedure