Skip to content

Infundibulum/metaphor-detection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Automatic Metaphorical Phrase Detection

Created by Adam Varga, 2014

This tool was used for experimenting with the automatic detection of metaphorical and/or idiomatic phrases in texts. The program constructs a full weighted graph for each sentence (the words being its nodes), where the weight is the Google Distance between two words, which serves as an automatic semantic distance measure. This version operated on an offline corpus, i. e. downloaded webpages.

For each word in the sentence, the program checks whether removing that word from the sentence increases or decreases the average weight of the graph. The hypothesis is that if words are used metaphorically/idiomatically, the average weight will decrease due to the shorter semantic distance between the other words used literally.

About

Automatic metaphor detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%