I noticed that there are several lines of code in the inference function:
## input valid check
if not re.match(r"^[A-Za-z ,.!?\'\"]+$", input_str) or len(input_str) < 1:
output_str = "[Error] Invalid input: ", input_str
return output_str, None
I want to ask if the purpose of this check is because the search model vocabulary does not contain characters other than these?
I really want to figure this out because some of my inputs contain common characters like ":"";", but these are banned, which makes me very frustrated.
I noticed that there are several lines of code in the inference function:
I want to ask if the purpose of this check is because the search model vocabulary does not contain characters other than these? I really want to figure this out because some of my inputs contain common characters like ":"";", but these are banned, which makes me very frustrated.