parameters: (embedding_cls)
return_statement: return register_text_embedding(embedding_cls)
docstring: Registers a new token embedding.
  
  
      Once an embedding is registered, we can create an instance of this embedding with
      :func:`~mxnet.contrib.text.embedding.create`.
  
  
      Examples
      --------
      >>> @mxnet.contrib.text.embedding.register
      ... class MyTextEmbed(mxnet.contrib.text.embedding._TokenEmbedding):
      ...     def __init__(self, pretrained_file_name='my_pretrain_file'):
      ...         pass
      >>> embed = mxnet.contrib.text.embedding.create('MyTokenEmbed')
      >>> print(type(embed))
      <class '__main__.MyTokenEmbed'>
docstring_summary: Registers a new token embedding.
docstring_tokens: Registers a new token embedding .
function: def register(embedding_cls):
      """Registers a new token embedding.
  
  
      Once an embedding is registered, we can create an instance of this embedding with
      :func:`~mxnet.contrib.text.embedding.create`.
  
  
      Examples
      --------
      >>> @mxnet.contrib.text.embedding.register
      ... class MyTextEmbed(mxnet.contrib.text.embedding._TokenEmbedding):
      ...     def __init__(self, pretrained_file_name='my_pretrain_file'):
      ...         pass
      >>> embed = mxnet.contrib.text.embedding.create('MyTokenEmbed')
      >>> print(type(embed))
      <class '__main__.MyTokenEmbed'>
      """
  
      register_text_embedding = registry.get_register_func(_TokenEmbedding, 'token embedding')
      return register_text_embedding(embedding_cls)
function_tokens: def register ( embedding_cls ) : register_text_embedding = registry . get_register_func ( _TokenEmbedding , 'token embedding' ) return register_text_embedding ( embedding_cls )