added some stubs on special_regex_maker
This commit is contained in:
parent
09f7b39512
commit
845d645348
@ -2,6 +2,13 @@ import re
|
|||||||
|
|
||||||
|
|
||||||
def special_regex_maker(special_tokens: list[str]) -> re.Pattern:
|
def special_regex_maker(special_tokens: list[str]) -> re.Pattern:
|
||||||
|
""" compile a regex for the special token
|
||||||
|
Args:
|
||||||
|
special_tokens (list[str]): the list of special token
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
re.Pattern:
|
||||||
|
"""
|
||||||
|
|
||||||
REGEX_STR = "|".join(special_tokens)
|
REGEX_STR = "|".join(special_tokens)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user