def get_next_epoch(savedmodel_path):
    """
    Read the path to the saved model and returns the next eopch to train on.
    Input: string specifying path
    Returns: int specifying the next epoch
    """
    if savedmodel_path == "":
        next_epoch = 1
    else:
        next_epoch = int(savedmodel_path[savedmodel_path.rfind("-")+1:]) + 1
    return next_epoch