-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop to Master 21-04-22 #478
Conversation
Build ASR Support for Regex, Email. Enhance Number, Date Entity
input_text (str): modified text | ||
|
||
Example: | ||
fit_text_to_format(input_text='1 2 3 45', regex_pattern='\d{5}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W605 invalid escape sequence '\d'
|
||
if not insert_edits: | ||
# A rough heuristic to allow (#_of_punctuations + 2) extra characters during fuzzy matching | ||
count = lambda l1, l2: sum([1 for x in l1 if x in l2]) # pylint: disable=E731 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E731 do not assign a lambda expression, use a def
|
||
Example procedure: | ||
input_text = "बी nine nine three zero" | ||
regex = r"\w\d{4}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W605 invalid escape sequence '\w'
W605 invalid escape sequence '\d'
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
UNIT TESTS HAVE PASSED... Good To Merge |
#475