Classifying a Sentence as Pun based on N-Gram Probability and Semantic Relatedness
Files - Test_Package2.py (n_gram) , Semantic_Sim.py , Test_python.py (classifier)
The project aims at identifying pun in a written sentence, which may appear as a part of blog, news article of any journal. The focus is on an important type of linguistic humor - homophone puns. Homophone puns are sentences that contain one or more words that are phonetically ambiguous and that can be interpreted in multiple ways given the surrounding context.