Skip to content

hkim1596/novel_plot_element_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

novel_plot_element_analysis

Folder overview

pre_processing/

Raw SF novel corpus and the scripts that turn it into model-ready data. Contains the source .txt novels (text/), per-novel chunked JSON outputs for BERT (data/), and the conversion scripts.

mtl/

Multi-task learning code for plot element classification. Includes the training/evaluation entry points (main.py, train.py, evaluation.py), model definitions (BERT / ELECTRA / RoBERTa / BGE-M3), configs, and the .pkl datasets used for training.

novel_generation/

GPT-based science-fiction novel generator. Uses the token-length distribution from plot_element.json to sample target lengths, then prompts GPT chapter-by-chapter; output novels are written to novel_output/. API key is loaded from a local .env file (gitignored).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages