- Sonnet Generator
- assets
- fonts
- DMSerif.ttf
- OldLondon.ttf
- images
- scroll.png
- fonts
- datasets
- dataset.txt
- dataset2.txt
- backend.py
- datavisual.py
- README.md
- requirements.txt
- test.py
- uiscroll.py
- assets
We can add additional datasets as .txt file inside the folder datasets for training the model
- Run the below code in Terminal(Command Prompt or IDE terminal)
pip install -r requirements.txt
- Type python in the terminal
python
- It will open up a python terminal for you
- Type the below code in Python Terminal
>>>import nltk >>>nltk.download('cmudict') >>>nltk.download('wordnet')
- Open Command Prompt
- Change working directory to the folder Sonnet Generator
- Run the below code to open the UI
python uiscroll.py
- It will open up the UI with a generated sonnet
- Click on "Generate" button to generate next sonnet
- Open the Folder Sonnet Generator in the IDE
- Install necessary packages as mentioned above in IDE terminal
- Run uiscroll.py
- It will open up the UI with a generated sonnet
- Click on "Generate" button to generate next sonnet
- Open the Folder Executable
- Extract the zip folder uiscroll
- After Extraction is completed.Open the folder and run uiscroll.exe
- It will open up the UI with a generated sonnet
- Click on "Generate" button to generate next sonnet
- Run the below code to open the visualisation
python datavisual.py
- Run datavisual.py
tested on : windows 10 Home (64-bit OS)