utils package

Submodules

evaluate_from_file module

preprocess_binary_word_vectors module

utils.preprocess_binary_word_vectors.parse_args()
utils.preprocess_binary_word_vectors.word2vec2npy(v_path, base_path_save, dest_filename)

Preprocess pretrained binary vectors and stores them in a suitable format. :param v_path: Path to the binary vectors file. :param base_path_save: Path where the formatted vectors will be stored. :param dest_filename: Filename of the formatted vectors.

preprocess_text_word_vectors module

utils.preprocess_text_word_vectors.parse_args()
utils.preprocess_text_word_vectors.txtvec2npy(v_path, base_path_save, dest_filename)

Preprocess pretrained text vectors and stores them in a suitable format :param v_path: Path to the text vectors file. :param base_path_save: Path where the formatted vectors will be stored. :param dest_filename: Filename of the formatted vectors.

utils module

utils.utils.update_parameters(params, updates, restrict=False)

Updates the parameters from params with the ones specified in updates :param params: Parameters dictionary to update :param updates: Updater dictionary :param restrict: If True, parameters from the original dict are not overwritten. :return:

Module contents