Update README.md
Browse files
README.md
CHANGED
@@ -15,7 +15,7 @@ widget:
|
|
15 |
- text: ethanol
|
16 |
example_title: CCO
|
17 |
---
|
18 |
-
#
|
19 |
|
20 |
IUPAC2SMILES-canonical-base was designed to accurately translate IUPAC chemical names to SMILES.
|
21 |
|
@@ -44,8 +44,8 @@ pip install chemical-converters
|
|
44 |
from chemicalconverters import NamesConverter
|
45 |
|
46 |
converter = NamesConverter(model_name="knowledgator/IUPAC2SMILES-canonical-base")
|
47 |
-
print(converter.
|
48 |
-
print(converter.
|
49 |
```
|
50 |
```text
|
51 |
['CCO']
|
@@ -56,7 +56,7 @@ print(converter.smiles_to_iupac(['ethanol', 'ethanol', 'ethanol']))
|
|
56 |
from chemicalconverters import NamesConverter
|
57 |
|
58 |
converter = NamesConverter(model_name="knowledgator/IUPAC2SMILES-canonical-base")
|
59 |
-
print(converter.
|
60 |
process_in_batch=True, batch_size=1000))
|
61 |
```
|
62 |
```text
|
|
|
15 |
- text: ethanol
|
16 |
example_title: CCO
|
17 |
---
|
18 |
+
# IUPAC2SMILES-canonical-base
|
19 |
|
20 |
IUPAC2SMILES-canonical-base was designed to accurately translate IUPAC chemical names to SMILES.
|
21 |
|
|
|
44 |
from chemicalconverters import NamesConverter
|
45 |
|
46 |
converter = NamesConverter(model_name="knowledgator/IUPAC2SMILES-canonical-base")
|
47 |
+
print(converter.iupac_to_smiles('ethanol'))
|
48 |
+
print(converter.iupac_to_smiles(['ethanol', 'ethanol', 'ethanol']))
|
49 |
```
|
50 |
```text
|
51 |
['CCO']
|
|
|
56 |
from chemicalconverters import NamesConverter
|
57 |
|
58 |
converter = NamesConverter(model_name="knowledgator/IUPAC2SMILES-canonical-base")
|
59 |
+
print(converter.iupac_to_smiles(["buta-1,3-diene" for _ in range(10)], num_beams=1,
|
60 |
process_in_batch=True, batch_size=1000))
|
61 |
```
|
62 |
```text
|