class_docstr: Apply the Moses Tokenizer/Detokenizer implemented in
   [sacremoses](https://github.com/alvations/sacremoses).
  
  .. note::
      sacremoses carries an LGPL 2.1+ license.
  
  Parameters
  ----------
  lang
      The language of the input.
class_docstr_tok: ["Apply","the","Moses","Tokenizer\/Detokenizer","implemented","in","[","sacremoses","]","(","https",":","\/\/github.com\/alvations\/sacremoses",")",".","..","note",":",":","sacremoses","carries","an","LGPL","2.1+","license",".","Parameters","--","--","--","--","--","lang","The","language","of","the","input","."]
code: def vocab(self):
      return self._vocab
  
file_path: gluon-nlp/src/gluonnlp/data/tokenizers/moses.py
imports: from typing import Optional
  import warnings
  import sacremoses
  from .base import TOKENIZER_REGISTRY, BaseTokenizerWithVocab, TokenizerEncodeWithoutVocabError, TokenizerDecodeWithoutVocabError, TokenTypeNotSupportedError, is_tokens_from_multiple_sentences, get_token_type
  from ..vocab import Vocab
label_desc: Use image node_id 6 for calling the MosesTokenizer obj's underlying member method code with example usage: obj.vocab() and returns: self