facebookresearch / esm

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

fix: iterate over tokenized sequence / index-error #338

Open hredestig opened 1 year ago

hredestig commented 1 year ago

Iteration happen over all residue tokens of the tokenized sequence (first index 1). The corresponding residue in sequence exludes the start token so i - 1.