Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/merveenoyan/ml-poetry
Poetry classification with RNN and decision trees.
https://github.com/merveenoyan/ml-poetry
Last synced: about 1 month ago
JSON representation
Poetry classification with RNN and decision trees.
- Host: GitHub
- URL: https://github.com/merveenoyan/ml-poetry
- Owner: merveenoyan
- Created: 2020-05-28T16:07:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:02:30.000Z (about 2 years ago)
- Last Synced: 2024-12-30T03:43:16.289Z (about 2 months ago)
- Language: Jupyter Notebook
- Size: 371 KB
- Stars: 31
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poetry Classification Notebook

This notebook includes classification of poetry ages and authors with both RNNs and decision trees (because the size of data is too small).## Models and Data Used
- Data: Poetry from various poets such as William Shakespeare, different genres and different ages.
- Classification Methods: Decision Trees (sklearn) and RNNs (tf.keras)
# Files
- *all.csv* including data taken from [kaggle](https://www.kaggle.com/ishnoor/poetry-analysis-with-machine-learning?select=all.csv)
- *poetry-nlp-notebook.ipynb* Interactive Python Notebook that includes the code itself## Libraries Used
nltk
re
keras
seaborn
matplotlib
scikit-learn
pandas
tensorflow
numpy
wordcloud
ps: All the libraries can be downloaded by pip install -r requirements.txt## Author
- **Merve Noyan** - [merveenoyan](https://github.com/merveenoyan)
## Further Notes
Will migrate this project to tensorflow and generate poetry, stay tuned and watch this repo if you don't want to miss 🤓> Written with [StackEdit](https://stackedit.io/).