Read-only mirror of https://github.com/epfl-dlab/emoji-ambiguity — EPFL Data Science & AI Lab (dlab). Issues & pull requests at the source.
  • Jupyter Notebook 94.7%
  • Python 4.5%
  • HTML 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-04-08 12:41:21 +02:00
data fix column name for vocab size 2022-03-21 17:08:25 +01:00
figures embed fonts for camera ready 2022-03-29 10:49:55 +02:00
notebooks add emoji categories descriptions 2022-04-08 12:40:13 +02:00
src enlarge emoji icons in figure1 2022-03-22 19:18:39 +01:00
.gitignore add symbolic annotations, remove twitter count 2022-02-10 11:00:34 +01:00
figure1.html added vocabulary baseline to vega plot 2022-03-19 22:54:37 +01:00
README.md add emoji categories descriptions 2022-04-08 12:40:13 +02:00
requirements.txt Update requirements.txt 2022-04-08 12:41:21 +02:00
settings.py add csv with ambiguity scores 2022-03-21 17:00:29 +01:00

Code and data for: On the Context-Free Ambiguity of Emoji

Repository structure


├── README.md          <- The top-level README
├── settings.py        <- Project constants: data paths used in the notebook
├── data               
│   ├── emoji_imgs                        <- .png images of emojis used for plotting
│   ├── emoji_annotations.csv.gz          <- Dataset containing human annotations for emojis in the context-free setting along with assigned fine-grained emoji categories
    ├── ambiguity_scores.csv.gz           <- Dataset containing emojis' semantic variations and vocabularies
│   ├── glove-twitter-200-ambiguity.bin   <- Subset of glove gensim twitter embeddings for words from our dataset
│   ├── emoji_categories_x.csv            <- Annotations of symbolic levels from author x
│   ├── emoji_categories_y.csv            <- Annotations of symbolic levels from author y
│   └── emoji_categories.pkl              <- Scraped emojipedia categories
│
├── notebooks          <- Jupyter notebooks
│   └── final_notebook.ipynb   <- Notebook with plotting code for: Fig 1, 2, 3 and table 1
│
├── figures            <- Generated figures, figure: 1
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt`
│
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to generate data
│   │   ├── assign_emoji_categories           <- Functions to assign emoji categories
│   │   ├── emoji_categorization.py           <- Dictionary with hand-crafted emoji categorization
│   │   └── utils.py                          <- Helper functions to save files
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│       └── emoji_plotting.py <- Functions to plot emoji scatter plots
└──

System requirements and installation guide

We recommend a local installation of new Python virtual environment. The code was tested on Ubuntu 18.04. Please use the packages versions provided in requirements.txt

  1. Open the terminal. To avoid any incompatibility issue, please create a new virtual environment. This project was created using virtualenvwrapper

pip install virtualenvwrapper
mkvirtualenv emoji-ambiguity -r requirements.txt -p python3.7

The environment should be activated automatically, if not use:
workon emoji-ambiguity

To deactivate the environment simply use:
deactivate

  1. Start a Jupyter notebook server.
    cd notebooks
    jupyter notebook

  2. Select "Cells -> Run all". The figures and table with emoji categories and their descriptions will be displayed in the browser, figures will be saved in emoji-ambiguity/figures folder.

Cite us

Please cite as: On the Context-Free Ambiguity of Emoji. Justyna Częstochowska, Kristina Gligorić, Maxime Peyrard, Yann Mentha, Michal Bien, Andrea Grütter, Anita Auer, Aris Xanthos and Robert West. In Proc. of the International AAAI Conference on Web and Social Media ICWSM, 2022.