XinhaoLi74 / SmilesPE

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

A problem exists within the provided colab. #24

Open Rzarman opened 3 weeks ago

Rzarman commented 3 weeks ago

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

QQ截图20240910214626

Rzarman commented 3 weeks 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