Get the vocabulary from the file saved by OpenNMT during preprocessing.
vocab_path (Union[str, PathLike]) – vocab file, such as preprocessed.vocab.pt.
Union
str
PathLike
List[str]
List