This repository holds code for the experiments of ongoing work with LLMs and Image Schemas. Feel free to use the conda environment through:
conda env create -f schemas.yml
You need to put your huggingface authetication token in the file:
hf.key
Original Papers:
Taking a Stand on the Meanings of Stand: Bodily Experience as Motivation for Polysemy
The Embodied Approach to the Polysemy of the Spatial Preposition On
The corresponding folder contains notebooks to generate the model answers and analyze the results. The generated model outputs used for the analysis in our paper can be found in the subfolder lm_generations.
Original Paper: "Language is Spatial": Experimental Evidence for Image Schemas of Concrete and Abstract Verbs
Three versions of the first experiment by Richardson et al. (2001) have been implemented.
Version 01 (labelled "01") represents a text-image version. Here, different prompts have been tested to probe the LM with version of Unicode options with the final prompt being:
"Select the image that best represents the event described by the sentence: "+action_word+"\n[◯→▢]\n\n[◯←▢]\n\n[◯\n↑\n▢]\n\n[◯\n↓\n▢]\n\nThe best representation is [◯"
Version 02 (labelled "02") represents a text version. It uses the same prompt, but the unicode has been replaced with words describing the cardinal direction of the image:
"Select the CONCEPT that best represents the event described by the sentence: "+action_word+". CONCEPTS: UP, DOWN, LEFT, RIGHT.\nThe best representation is CONCEPT:"
Version 03 (labelled "03") represents an image version. It uses a similar prompt, but in this version a Vision-Language-Model provides an answer based in image information.