Skip to content
Lucas Varela Correa edited this page Jun 16, 2024 · 6 revisions

Function

Encode text with a very strong encode

Content

(All functions)

  • create_dictionary_of_keys: no arguments
  • encode: text -> list[str]; dictionary_of_keys -> dict[str][int]
  • decode: text -> list[str]; dictionary_of_keys -> dict[str][int]

Example of use

text = ['hi all', 'no hi all', 'lion in a dragon', 'every one dancing right now']

import EUBTA

symbols = create_symbols(text)

dictionary_of_keys = EUBTA.create_dictionary_of_keys(symbols)

encode_text = EUBTA.encode(text=text, dictionary_of_keys=dictionary_of_keys)

decode_text = EUBTA.decode(text=encode_text, dictionary_of_keys=dictionary_of_keys)

print(f'Dictionary of keys: {dictionary_of_keys}')

print(f'Encode text: {encode_text}')

print(f'Decode text: {decode_text}')

Install the library

pip install EUBTA

Clone this wiki locally