from typing import Tuple


def map_tweets_to_int(tweet_list: list) -> Tuple[list, dict, dict]:
    """
    Maps the cleansed tweets to lists of integer, which is better for further
    processing. The mapping table is also returned.
    :param text_list: List containing tweets
    :return: Encoded tweets and mapping dictionaries.
    """
    unique_chars = sorted({char for word in tweet_list for char in word})
    mapping_char_to_int = {char: i for i, char in enumerate(unique_chars)}
    mapping_int_to_char = {i: char for i, char in enumerate(unique_chars)}

    encoded_tweets = []
    for tweet in tweet_list:
        tweet = list(tweet)
        tweet = [mapping_char_to_int[char] for char in list(tweet)]
        encoded_tweets.append(tweet)

    return encoded_tweets, mapping_char_to_int, mapping_int_to_char