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: Sets the cache cleanup period.
          
docstr_tok: ["Sets","the","cache","cleanup","period","."]
code: def cache_period(self, period: int) -> None:
      """Sets the cache cleanup period."""
      # -1 disables cache, 0 causes assert
      if period < 1:
          period = -1
      return self._internal.set_cache_period(period)
  
file_path: neoml/NeoML/Python/neoml/BytePairEncoder.py
imports: import neoml.PythonWrapper
  import typing
label_desc: Use image node_id 14 for calling the BytePairEncoder obj's underlying member method code with example usage: obj.cache_period(period) and returns: self