-
Notifications
You must be signed in to change notification settings - Fork 50
[Feature] Add OneMinusNormEditDistance for OCR Task #95
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
base: main
Are you sure you want to change the base?
[Feature] Add OneMinusNormEditDistance for OCR Task #95
Conversation
eba0ab8 to
0a299c5
Compare
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.
LGTM with some comments! Also please add the api docs.
dda766e to
b7e8395
Compare
b7e8395 to
412c681
Compare
823bf0e to
1439ed3
Compare
1439ed3 to
8781329
Compare
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.
LGTM. Should rebase to main to pass CI
8781329 to
dbeb3ea
Compare
| invalid_symbol: str = '[^A-Za-z0-9\u4e00-\u9fa5]', | ||
| **kwargs): | ||
| super().__init__(**kwargs) | ||
|
|
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.
rapidfuzz is not added in runtime.txt so the metric will throw an error when calling add method. The solution is to check it in __init__. Refer to
| raise ImportError(f'For availability of {self.__class__.__name__},' |
Adapt at open-mmlab/mmocr#1728