Wildcard Results

When pyosra cannot resolve a node in a chemical diagram, it assigns a wildcard character * to the appropriate position in the output SMILES string.

ChemSchematicResolver allows the user to ignore or include these results using the allow_wildcards parameter in any extract_ function.

For example:

>>> result = csr.extract_image('<path/to/image/file>', allow_wildcards=True)

This will now include any outputted structures that were not completely resolved:

>>> print(result)
[(['1a'], 'C1=CC=CC=C1'), (['1b'], 'C1=CC=CC(=C1)C'), (['1c'], 'C1=CC=CC(=C1)C*')]

Please note that allow_wildcards=False is the default setting in ChemSchematicResolver.