def compute_max_seq_len_text(df, col, tokenizer):
    """
        Compute the maximum occuring sequence length in the dataset
        Args:

            df: dataframe containing the complete dataset
            col: column name containing the text
            tokenizer: map used to convert tokents to ids (assumes tokenier has a convert_tokens_to_ids function)

        Output:
           max_seq_len_text: (int)
    """
    max_seq_len_text = 0
    for i, r in df.iterrows():
        text = r[col]
        ttok = tokenizer.tokenize(text)
        ttok = tokenizer.convert_tokens_to_ids(ttok)
        if (len(ttok) > max_seq_len_text):
            max_seq_len_text = len(ttok)
    return max_seq_len_text