Byte-Pair Encoding for Text Tokenization in Natural Language Processing