You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the match_word arg. If match_word=True, it will not be able to handle multi-words, but able to handle short words.
importeldareldar_query=eldar.Query('cake shop', match_word=True)
print(eldar_query('cake shop'))
# False, this is incorrect as it should match
importeldareldar_query=eldar.Query('cn', match_word=True)
print(eldar_query('cny'))
# False, this is correct
But if match_word=False, it will not be able to handle short words, but able to handle multi-words.
importeldareldar_query=eldar.Query('cake shop', match_word=False)
print(eldar_query('cake shop'))
# True, this is correct
importeldareldar_query=eldar.Query('cn', match_word=False)
print(eldar_query('cny'))
# True, this is incorrect as it should not match
I've tried testing with quotation marks and wildcards around multi-words, but it still does not work.
importeldareldar_query=eldar.Query('"cake shop"', match_word=True)
print(eldar_query('cake shop'))
# False, this is incorrect as it should not matcheldar_query=eldar.Query('cake*shop', match_word=True)
print(eldar_query('cake shop'))
# False, this is incorrect as it should not matcheldar_query=eldar.Query('"cake*shop"', match_word=True)
print(eldar_query('cake shop'))
# False, this is incorrect as it should not match
The text was updated successfully, but these errors were encountered:
Shaun-Tan-DJ
changed the title
match_word
match_word unable to handle multi-words and short words
Aug 6, 2024
Hi,
There is an issue with the match_word arg. If match_word=True, it will not be able to handle multi-words, but able to handle short words.
But if match_word=False, it will not be able to handle short words, but able to handle multi-words.
I've tried testing with quotation marks and wildcards around multi-words, but it still does not work.
The text was updated successfully, but these errors were encountered: