def get_tokens_flags(case_sensitive):
    flags = re.U
    if not case_sensitive:
        flags = (re.I | flags)
    return flags
Returns flags for regular expression matching depending on text analysis
dataset/ETHPy150Open bigmlcom/python/bigml/predicate.py/get_tokens_flags