class_docstr: BytePairEncoder trains byte pair encoding and
  encodes words using trained encoding
class_docstr_tok: ["BytePairEncoder","trains","byte","pair","encoding","and","encodes","words","using","trained","encoding"]
docstr: Loads encoder from a binary file.
  
  :param path: path to file.
  : type path: str
docstr_tok: ["Loads","encoder","from","a","binary","file",".",":","param","path",":","path","to","file",".",":","type","path",":","str"]
code: def load(cls, path: str) -> "BytePairEncoder":
      """Loads encoder from a binary file.
  
      :param path: path to file.
      : type path: str
      """
      result = BytePairEncoder(None, eow=None, sow=None)
      result._internal.load(path)
      return result
  
file_path: neoml/NeoML/Python/neoml/BytePairEncoder.py
imports: import neoml.PythonWrapper
  import typing
label_desc: Use image node_id 3 for calling the BytePairEncoder obj's underlying member method code with example usage: obj.load(cls, path) and returns: result