class_docstr: Given a merge pairs strings series, performs byte pair encoding on
  a strings series using the provided separator.
  
  Parameters
  ----------
  merges_pairs : str
      Strings column of merge pairs
  
  Returns
  -------
  BytePairEncoder
class_docstr_tok: ["Given","a","merge","pairs","strings","series",",","performs","byte","pair","encoding","on","a","strings","series","using","the","provided","separator",".","Parameters","--","--","--","--","--","merges_pairs",":","str","Strings","column","of","merge","pairs","Returns","--","--","--","-","BytePairEncoder"]
docstr: Parameters
  ----------
  text : cudf string series
      The strings to be encoded.
  
  Returns
  -------
  Encoded strings
  
  Examples
  --------
  >>> import cudf
  >>> from cudf.core.byte_pair_encoding import BytePairEncoder
  >>> mps = cudf.Series(["e n", "i t", "i s", "e s", "en t",
  ...                    "c e", "es t", "en ce", "T h", "Th is",
  ...                    "t est", "s ent", "t h", "th is"])
  >>> bpe = BytePairEncoder(mps)
  >>> str_series = cudf.Series(['This is the sentence', 'thisisit'])
  >>> bpe(str_series)
  0    This is a sent ence
  1             this is it
  dtype: object
docstr_tok: ["Parameters","--","--","--","--","--","text",":","cudf","string","series","The","strings","to","be","encoded",".","Returns","--","--","--","-","Encoded","strings","Examples","--","--","--","--",">",">",">","import","cudf",">",">",">","from","cudf.core.byte_pair_encoding","import","BytePairEncoder",">",">",">","mps","=","cudf.Series","(","[","``","e","n","''",",","``","i","t","''",",","``","i","s","''",",","``","e","s","''",",","``","en","t","''",",","...","``","c","e","''",",","``","es","t","''",",","``","en","ce","''",",","``","T","h","''",",","``","Th","is","''",",","...","``","t","est","''",",","``","s","ent","''",",","``","t","h","''",",","``","th","is","''","]",")",">",">",">","bpe","=","BytePairEncoder","(","mps",")",">",">",">","str_series","=","cudf.Series","(","[","'This","is","the","sentence","'",",","'thisisit","'","]",")",">",">",">","bpe","(","str_series",")","0","This","is","a","sent","ence","1","this","is","it","dtype",":","object"]
code: def __call__(self, text, separator: str = " "):
      """
  
      Parameters
      ----------
      text : cudf string series
          The strings to be encoded.
  
      Returns
      -------
      Encoded strings
  
      Examples
      --------
      >>> import cudf
      >>> from cudf.core.byte_pair_encoding import BytePairEncoder
      >>> mps = cudf.Series(["e n", "i t", "i s", "e s", "en t",
      ...                    "c e", "es t", "en ce", "T h", "Th is",
      ...                    "t est", "s ent", "t h", "th is"])
      >>> bpe = BytePairEncoder(mps)
      >>> str_series = cudf.Series(['This is the sentence', 'thisisit'])
      >>> bpe(str_series)
      0    This is a sent ence
      1             this is it
      dtype: object
      """
      sep = cudf.Scalar(separator, dtype="str")
      result = cpp_byte_pair_encoding(
          text._column, self.merge_pairs, sep
      )
  
      return cudf.Series(result)
  
imports: from __future__ import annotations
  import cudf
  from cudf._lib.nvtext.byte_pair_encode import BPEMergePairs, byte_pair_encoding
label_desc: Use image node_id 2 for calling the BytePairEncoder obj's underlying member method code with example usage: obj.__call__(text, separator) and returns: cudf