Skip to content

Latest commit

History

146 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Fake it Till You Make it: Self-Supervised Semantic Shifts for Monolingual Word Embedding Tasks

This code repository contains the code for the experiments seen in the paper Fake it Till You Make it: Self-Supervised Semantic Shifts for Monolingual Word Embedding Tasks (2020).

Requirements

Python version: Python 3.8. Some of the dependencies are not compatible with newer Python versions.

This repository contains mainly Python3 routines and dependencies listed in requirements.txt. To install the dependencies using pip/venv, run:

pip3 install -r requirements.txt

Setup

After installing the requirements, run setup.sh to configure the environment and download the pre-trained word embeddings.

sh setup.sh

This will create the folders to store the results, and will download pre-trained vectors. The size of the download is approximately 500MB.

Alternatively, the pre-trained embeddings can be downloaded here.

Results

British English 🇬🇧 vs. American English 🇺🇸

Results for the classification task on detecting semantic shift between British English and American English.

** Requires the pre-trained word embeddings from BNC and COCA **

To reproduce these results, run:

chmod +x ukus_experiment.sh
./ukus_experiment.sh

By default, results are saved to results/ukus/cls_results.txt.

MethodAlignmentAccuracyPrecisionRecallF1
COSglobal0.350.710.190.3
S4-Dglobal0.45 +- 0.020.45 +- 0.020.45 +- 0.020.45 +- 0.03
Noisy-Pairs-0.291.00.030.06

SemEval-2020 Task on Unsupervised Lexical Semantic Change Detection

Results for the binary classification task on semantic shift for multiple languages (SemEval2020 Task 1): English, German, Latin, and Swedish.

** Requires the pre-trained embeddings from SemEval **

To reproduce these results:

chmod +x semeval_experiment.sh
./semeval_experiment.sh

By default, results are saved to results/semeval/cls_results.txt.

MethodLanguageMean acc.Max acc.
s4english0.620.7
noise-awareenglish0.610.65
top-10english0.590.68
bot-10english0.580.68
globalenglish0.610.68
top-5english0.590.65
bot-5english0.570.68

ArXiv Semantic Shift Discovery

Word discovery experiment on the arXiv data set for subjects Artificial Intelligence (cs.AI) and Classical Physics (physics.class-ph). This table shows the list of top semantically shifted words uniquely discovered by Global, Noise-Aware and S4-A alignments, respectively. As well as the most shifted words commonly discovered by all three methods.

** Requires the pre-trained embeddings from arXiv **

To reproduce these results:

chmod +x arxiv_experiment.sh
./arxiv_experiment.sh

The table of results is saved in results/arxiv/table.txt, the ranking correlation plot is saved in results/arxiv/arxiv_ranking.pdf.

GlobalNoise-AwareS4-ACommon
agentcomponentsconceptsnodes
approximationelementdensityphys
boundarymassdeterministicpolynomial
conceptualorderdieprobability
knowledgesolutionedgerespect
planespaceequationsrev
referencestatefieldsrough
rulesterminternalrule
systemtimelighttensor
systemsvectorlosvariables

About

Code for Self-Supervised Semantic Shift

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages