XinhaoLi74 / SmilesPE

SMILES Pair Encoding: A data-driven substructure representation of chemicals
https://xinhaoli74.github.io/SmilesPE/
Apache License 2.0
182 stars 31 forks source link

A problem exists within the provided colab. #24

Open Rzarman opened 1 month ago

Rzarman commented 1 month ago

When I tried to run the provided colab program, I encountered the following probelm:

QQ截图20240910214626

Rzarman commented 1 month ago

The problem can be solved by modifying the code as follows: move self.vocab = load_vocab(vocab_file) before super().init(...) in class SMILES_SPE_Tokenizer, like this: 42