Skip to content

An application of the results obtained by manipulating semantic and morphological analogies to get specific form of pun

Notifications You must be signed in to change notification settings

Camille-saran/puns_analogies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An application of the results obtained by manipulating semantic and morphological analogies to get specific form of pun

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published