lexnlp.utils.unicode.tests package¶
Submodules¶
lexnlp.utils.unicode.tests.test_unicode_lookup module¶
-
lexnlp.utils.unicode.tests.test_unicode_lookup.
check_all_chars_have_correct_category
()¶ A method for manual running, debugging and comparing the custom unicode lookup tables and unicodedata module. :return:
-
lexnlp.utils.unicode.tests.test_unicode_lookup.
safe_remove_temp_file
(handler, name)¶ Safely closes os handler and removes the file. :param handler: OS file handler. :param name: File name. :return:
-
lexnlp.utils.unicode.tests.test_unicode_lookup.
test_performance
()¶ Ensures that performance of the custom unicode lookup tables is better than using unicodedata method. :return:
-
lexnlp.utils.unicode.tests.test_unicode_lookup.
test_preparing_tables
()¶ Tests preparing and loading the custom unicode lookup tables. :return: