knowledgator / SMILES2IUPAC-canonical-small

huggingface.co
Total runs: 443
24-hour runs: 8
7-day runs: 7
30-day runs: -77
Model's Last Updated: February 15 2024
text-generation

Introduction of SMILES2IUPAC-canonical-small

Model Details of SMILES2IUPAC-canonical-small

SMILES2IUPAC-canonical-small

SMILES2IUPAC-canonical-small was designed to accurately translate SMILES chemical names to IUPAC standards.

Model Details
Model Description

SMILES2IUPAC-canonical-small is based on the MT5 model with optimizations in implementing different tokenizers for the encoder and decoder.

  • Developed by: Knowladgator Engineering
  • Model type: Encoder-Decoder with attention mechanism
  • Language(s) (NLP): SMILES, IUPAC (English)
  • License: Apache License 2.0
Model Sources
Quickstart

Firstly, install the library:

pip install chemical-converters
SMILES to IUPAC
! Preferred IUPAC style

To choose the preferred IUPAC style, place style tokens before your SMILES sequence.

Style Token Description
<BASE> The most known name of the substance, sometimes is the mixture of traditional and systematic style
<SYST> The totally systematic style without trivial names
<TRAD> The style is based on trivial names of the parts of substances
To perform simple translation, follow the example:
from chemicalconverters import NamesConverter

converter = NamesConverter(model_name="knowledgator/SMILES2IUPAC-canonical-small")
print(converter.smiles_to_iupac('CCO'))
print(converter.smiles_to_iupac(['<SYST>CCO', '<TRAD>CCO', '<BASE>CCO']))
['ethanol']
['ethanol', 'ethanol', 'ethanol']
Processing in batches:
from chemicalconverters import NamesConverter

converter = NamesConverter(model_name="knowledgator/SMILES2IUPAC-canonical-small")
print(converter.smiles_to_iupac(["<BASE>C=CC=C" for _ in range(10)], num_beams=1, 
                                process_in_batch=True, batch_size=1000))
['buta-1,3-diene', 'buta-1,3-diene'...]
Validation SMILES to IUPAC translations

It's possible to validate the translations by reverse translation into IUPAC and calculating Tanimoto similarity of two molecules fingerprints.

from chemicalconverters import NamesConverter

converter = NamesConverter(model_name="knowledgator/SMILES2IUPAC-canonical-small")
print(converter.smiles_to_iupac('CCO', validate=True))
['ethanol'] 1.0

The larger is Tanimoto similarity, the larger is probability, that the prediction was correct.

You can also process validation manually:

from chemicalconverters import NamesConverter

validation_model = NamesConverter(model_name="knowledgator/IUPAC2SMILES-canonical-base")
print(NamesConverter.validate_iupac(input_sequence='CCO', predicted_sequence='CCO', validation_model=validation_model))
1.0
Bias, Risks, and Limitations

This model has limited accuracy in processing large molecules and currently, doesn't support isomeric and isotopic SMILES.

Training Procedure

The model was trained on 100M examples of SMILES-IUPAC pairs with lr=0.0003, batch_size=1024 for 2 epochs.

Evaluation
Model Accuracy BLEU-4 score Size(MB)
SMILES2IUPAC-canonical-small 75% 0.93 23
SMILES2IUPAC-canonical-base 86.9% 0.964 180
STOUT V2.0* 66.65% 0.92 128
STOUT V2.0 (according to our tests) 0.89 128
*According to the original paper https://jcheminf.biomedcentral.com/articles/10.1186/s13321-021-00512-4
Citation

Coming soon.

Model Card Authors

Mykhailo Shtopko

Model Card Contact

[email protected]

Runs of knowledgator SMILES2IUPAC-canonical-small on huggingface.co

443
Total runs
8
24-hour runs
26
3-day runs
7
7-day runs
-77
30-day runs

More Information About SMILES2IUPAC-canonical-small huggingface.co Model

More SMILES2IUPAC-canonical-small license Visit here:

https://choosealicense.com/licenses/apache-2.0

SMILES2IUPAC-canonical-small huggingface.co

SMILES2IUPAC-canonical-small huggingface.co is an AI model on huggingface.co that provides SMILES2IUPAC-canonical-small's model effect (), which can be used instantly with this knowledgator SMILES2IUPAC-canonical-small model. huggingface.co supports a free trial of the SMILES2IUPAC-canonical-small model, and also provides paid use of the SMILES2IUPAC-canonical-small. Support call SMILES2IUPAC-canonical-small model through api, including Node.js, Python, http.

SMILES2IUPAC-canonical-small huggingface.co Url

https://huggingface.co/knowledgator/SMILES2IUPAC-canonical-small

knowledgator SMILES2IUPAC-canonical-small online free

SMILES2IUPAC-canonical-small huggingface.co is an online trial and call api platform, which integrates SMILES2IUPAC-canonical-small's modeling effects, including api services, and provides a free online trial of SMILES2IUPAC-canonical-small, you can try SMILES2IUPAC-canonical-small online for free by clicking the link below.

knowledgator SMILES2IUPAC-canonical-small online free url in huggingface.co:

https://huggingface.co/knowledgator/SMILES2IUPAC-canonical-small

SMILES2IUPAC-canonical-small install

SMILES2IUPAC-canonical-small is an open source model from GitHub that offers a free installation service, and any user can find SMILES2IUPAC-canonical-small on GitHub to install. At the same time, huggingface.co provides the effect of SMILES2IUPAC-canonical-small install, users can directly use SMILES2IUPAC-canonical-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

SMILES2IUPAC-canonical-small install url in huggingface.co:

https://huggingface.co/knowledgator/SMILES2IUPAC-canonical-small

Url of SMILES2IUPAC-canonical-small

SMILES2IUPAC-canonical-small huggingface.co Url

Provider of SMILES2IUPAC-canonical-small huggingface.co

knowledgator
ORGANIZATIONS

Other API from knowledgator