facebookresearch / esm

Evolutionary Scale Modeling (esm): Pretrained language models for proteins
MIT License
3.16k stars 627 forks source link

Main README's 'click to copy' returns broken commands #274

Closed Alexperiments closed 2 years ago

Alexperiments commented 2 years ago

Bug description In the main README, I noticed that the copy to clipboard button returns the bash string with the $ sign in front.

Moreover, in this example:

$ python scripts/extract.py esm2_t33_650M_UR50D examples/data/some_proteins.fasta examples/data/some_proteins_emb_esm2/ \
    --repr_layers 0 32 33 --include mean per_tok

The command is broken into two lines, but the first one is executed right away when copied on a terminal. I think this is also not desirable.

Reproduction steps Copy and paste the previous command on a terminal

Expected behavior The commands should be ready to use

I proceed with a fix and a PR