Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.26 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.26 KB

puns_analogies

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

Abstract

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.

Instructions

This project was designed and tested using Python 3.10 on Google Collab. To setup the project, you have to:

  1. Download program notebook;
  2. Get a ID token for Hugging Face;
  3. Download the dataset, and meme template.
  4. Run the program on Google Notebook

Dataset

Download the shortjokes data on Kaggle, available here : https://www.kaggle.com/datasets/abhinavmoudgil95/short-jokes

Meme template

Download meme_template.png in the Program repositiry