Skip to content
tpimentelmsPublic

About

Code to get embeddings from wikipedia with BERT

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

wiki-bert

CircleCI

Code to get embeddings from wikipedia with BERT

Install

To install dependencies run:

$ conda env create -f config/environment.yml

And then install the appropriate version of pytorch, transformers and download spacy dependencies:

$ conda install -y pytorch torchvision cudatoolkit=10.1 -c pytorch
$ # conda install pytorch torchvision cpuonly -c pytorch
$ pip install transformers

Get wikipedia data

To get and tokenize data, use the github repository tpimentelms/wiki-tokenizer. Then put the parsed.txt files in path data/<language-name>/wiki.txt.

Get embeddings

Use the Makefile to get a language's embeddings:

$ make LANGUAGE=id

About

Code to get embeddings from wikipedia with BERT

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages