rxn.onmt_utils.model_introspection.get_preprocessed_vocab

rxn.onmt_utils.model_introspection.get_preprocessed_vocab(vocab_path)[source]

Get the vocabulary from the file saved by OpenNMT during preprocessing.

Parameters

vocab_path (Union[str, PathLike]) – vocab file, such as preprocessed.vocab.pt.

Return type

List[str]