lexnlp.utils.tests package

Submodules

lexnlp.utils.tests.test_line_processor module

class lexnlp.utils.tests.test_line_processor.TestLineProcessor(methodName='runTest')

Bases: unittest.case.TestCase

test_check_phrase_starts_with_phrase()
test_de_abbrs()
test_de_linebreaks()
test_line_processor_lines()
test_line_processor_phrases()
test_line_processor_phrases_abbr()
test_line_processor_phrases_de()
test_split_text_on_words()

lexnlp.utils.tests.test_map module

class lexnlp.utils.tests.test_map.TestMap(methodName='runTest')

Bases: unittest.case.TestCase

test_map()

lexnlp.utils.tests.test_parse_df module

lexnlp.utils.tests.test_parsed_text_corrector module

class lexnlp.utils.tests.test_parsed_text_corrector.TestParsedTextCorrector(methodName='runTest')

Bases: unittest.case.TestCase

process_text_files_in_folder(src_folder, dst_folder)
test_correct_if_corrupted()
test_estimate_dense_text()
test_estimate_fishy_header()

lexnlp.utils.tests.test_parsed_text_quality_estimator module

class lexnlp.utils.tests.test_parsed_text_quality_estimator.TestParsedTextQualityEstimator(methodName='runTest')

Bases: unittest.case.TestCase

test_estimate_dense_text()
test_estimate_fishy_header()
test_estimate_text_abusing_headers()

lexnlp.utils.tests.test_phrase_finder module

class lexnlp.utils.tests.test_phrase_finder.TestPhraseFinder(methodName='runTest')

Bases: unittest.case.TestCase

test_abbreviation()

Module contents