<jupyter_start><jupyter_text>Num2Word This tutorial is available as an IPython notebook at [Malaya/example/num2word](https://github.com/huseinzol05/Malaya/tree/master/example/num2word).<jupyter_code>import malaya<jupyter_output>/Users/huseinzolkepli/Documents/Malaya/malaya/preprocessing.py:259: FutureWarning: Possible nested set at position 2289
  self.tok = re.compile(r'({})'.format('|'.join(pipeline)))<jupyter_text>To cardinal```pythondef to_cardinal(number):    """    Translate from number input to cardinal text representation    Parameters    ----------    number: real number    Returns    -------    result: str        cardinal representation    """```<jupyter_code>malaya.num2word.to_cardinal(123456789)
malaya.num2word.to_cardinal(10)
malaya.num2word.to_cardinal(12)
malaya.num2word.to_cardinal(-1234567.89)<jupyter_output><empty_output><jupyter_text>To ordinal```pythondef to_ordinal(number):    """    Translate from number input to ordinal text representation    Parameters    ----------    number: real number    Returns    -------    result: str        ordinal representation    """```<jupyter_code>malaya.num2word.to_ordinal(1)
malaya.num2word.to_cardinal(1)
malaya.num2word.to_ordinal(10)
malaya.num2word.to_ordinal(12)
malaya.num2word.to_cardinal(-123456789)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13587786259541984, 'fraction_numerical': 0.044274809160305344, 'mean_word_length': 4.878923766816143, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '615487', 'license': 'MIT', 'n_tokens_mistral': 471, 'n_tokens_neox': 429, 'n_words': 68, 'path': 'example/num2word/load-num2word.ipynb', 'repo_name': 'AetherPrior/malaya', 'size': '1310'}