DECIMER/Predictor_EfficientNet2.py
def predict_SMILES(image_path: str):
    """
    This function takes an image path (str) and returns the SMILES
    representation of the depicted molecule (str).

    Args:
        image_path (str): Path of chemical structure depiction image

    Returns:
        (str): SMILES representation of the molecule in the input image
    """
    predicted_SELFIES = evaluate(image_path)
    predicted_SMILES = decoder(
        "".join(predicted_SELFIES).replace("<start>", "").replace("<end>", "")
    )

    return predicted_SMILES

    This function takes an image path (str) and returns the SMILES
    representation of the depicted molecule (str).

    Args:
        image_path (str): Path of chemical structure depiction image

    Returns:
        (str): SMILES representation of the molecule in the input image
    
This function takes an image path (str) and returns the SMILES
representation of the depicted molecule (str).
This function takes an image path ( str ) and returns the SMILES representation of the depicted molecule ( str ) .
def predict_SMILES(image_path: str):
    predicted_SELFIES = evaluate(image_path)
    predicted_SMILES = decoder(
        "".join(predicted_SELFIES).replace("<start>", "").replace("<end>", "")
    )
    return predicted_SMILES
def predict_SMILES ( image_path : str ) : predicted_SELFIES = evaluate ( image_path ) predicted_SMILES = decoder ( "" . join ( predicted_SELFIES ) . replace ( "<start>" , "" ) . replace ( "<end>" , "" ) ) return predicted_SMILES
This function takes an image path (str) and returns the SMILES
representation of the depicted molecule (str).
This function takes an image path ( str ) and returns the SMILES representation of the depicted molecule ( str ) .
"""
    This function takes an image path (str) and returns the SMILES
    representation of the depicted molecule (str).

    Args:
        image_path (str): Path of chemical structure depiction image

    Returns:
        (str): SMILES representation of the molecule in the input image
    """
SMILES representation of the molecule in the input image
SMILES representation of the molecule in the input image
(str)
image_path
str
Path of chemical structure depiction image
Path of chemical structure depiction image