The current repository contains the data, code and results of Puns analogies project. It was realised by the group punalogy [Maeva][Louis][Abir][Camille] for the 2022-2023 Software Project (UE905 EC1) at IDMC (Nancy), under the supervision of Esteban Marquer and Miguel Couceiro. You can find our reddit account here : https://www.reddit.com/user/meme_pun
Punalogy is a generator of puns based on analogical templates. Punalogy takes a word as input and generates a pun by substituting a part of the word with a homophone or a similar-sounding word. For example, given the input "mango," Punalogy might generate the pun "man is to mango as woman is to womango." In addition to generating the pun, Punalogy also creates a meme using a template and existing image generation models.
This project was designed and tested using Python 3.10 on Google Collab. To setup the project, you have to:
- Download program notebook;
- Get a ID token for Hugging Face;
- Download the dataset, and meme template.
- Run the program on Google Notebook
Download the shortjokes data on Kaggle, available here : https://www.kaggle.com/datasets/abhinavmoudgil95/short-jokes
Download meme_template.png in the Program repositiry