modules/utils/notebook_utils/doc2vec_helper.py
def write_sentences_to_file(candidate_obj_dict, sentences_file_dict):
    """
    This function is designed to get candiadte objects from the postgres database

    candidate_obj_dict - a dictionary containing candidates objects
    sentences_file_dict - a dictionary containing directories to write each file to.
    """

    for key in candidate_obj_dict:
        with open(sentences_file_dict[key], 'w') as f:
            for candidate in candidate_obj_dict[key]:
                f.write(candidate.get_parent().text + "\n")

    return

    This function is designed to get candiadte objects from the postgres database

    candidate_obj_dict - a dictionary containing candidates objects
    sentences_file_dict - a dictionary containing directories to write each file to.
    
This function is designed to get candiadte objects from the postgres database
candidate_obj_dict - a dictionary containing candidates objects
sentences_file_dict - a dictionary containing directories to write each file to.
This function is designed to get candiadte objects from the postgres database candidate_obj_dict - a dictionary containing candidates objects sentences_file_dict - a dictionary containing directories to write each file to .
def write_sentences_to_file(candidate_obj_dict, sentences_file_dict):
    for key in candidate_obj_dict:
        with open(sentences_file_dict[key], 'w') as f:
            for candidate in candidate_obj_dict[key]:
                f.write(candidate.get_parent().text + "\n")
    return
def write_sentences_to_file ( candidate_obj_dict , sentences_file_dict ) : for key in candidate_obj_dict : with open ( sentences_file_dict [ key ] , 'w' ) as f : for candidate in candidate_obj_dict [ key ] : f . write ( candidate . get_parent ( ) . text + "\n" ) return
This function is designed to get candiadte objects from the postgres database
candidate_obj_dict - a dictionary containing candidates objects
sentences_file_dict - a dictionary containing directories to write each file to.
This function is designed to get candiadte objects from the postgres database candidate_obj_dict - a dictionary containing candidates objects sentences_file_dict - a dictionary containing directories to write each file to .
"""
    This function is designed to get candiadte objects from the postgres database

    candidate_obj_dict - a dictionary containing candidates objects
    sentences_file_dict - a dictionary containing directories to write each file to.
    """
candidate_obj_dict
sentences_file_dict