fixed typos
This commit is contained in:
parent
c5c0c61f79
commit
51f491d033
@ -2,15 +2,14 @@ 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
|
"""compile a regex for the special token
|
||||||
Args:
|
Args:
|
||||||
special_tokens (list[str]): the list of special token
|
special_tokens (list[str]): the list of special token
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
re.Pattern:
|
re.Pattern:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
REGEX_STR = "|".join(special_tokens)
|
REGEX_STR = "|".join(special_tokens)
|
||||||
|
|
||||||
return re.compile(REGEX_STR)
|
return re.compile(REGEX_STR)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user