lexnlp.extract.common.tests package

Submodules

lexnlp.extract.common.tests.definitions_text_annotator module

lexnlp.extract.common.tests.definitions_text_annotator.annotate_definitions_text(text: str, definitions: List[lexnlp.extract.common.annotations.definition_annotation.DefinitionAnnotation], save_path: str) → None

lexnlp.extract.common.tests.test_annotation module

class lexnlp.extract.common.tests.test_annotation.TestAnnotation(methodName='runTest')

Bases: unittest.case.TestCase

test_act_annotation()
test_amount_annotation()
test_citation_annotation()
test_condition_annotation()
test_constraint_annotation()
test_cusip_annotation()
test_date_annotation()
test_money_annotation()
test_percent_annotation()
test_phone_annotation()
test_ratio_annotation()
test_repr()
test_ssn_annotation()
test_trademark_annotation()
test_url_annotation()

lexnlp.extract.common.tests.test_datefinder module

class lexnlp.extract.common.tests.test_datefinder.TestDateFinder(methodName='runTest')

Bases: unittest.case.TestCase

test_parse_str()
test_parse_time()

lexnlp.extract.common.tests.test_datefinder_tokenizer module

class lexnlp.extract.common.tests.test_datefinder_tokenizer.TestDateTokenizer(methodName='runTest')

Bases: unittest.case.TestCase

test_compare_date_string()
test_get_date_strings()
test_get_date_time()
test_get_tokens()
test_merge_tokens()

lexnlp.extract.common.tests.test_dates module

lexnlp.extract.common.tests.test_fact_extractor module

lexnlp.extract.common.tests.test_phrase_position_finder module

class lexnlp.extract.common.tests.test_phrase_position_finder.TestPhraseFinder(methodName='runTest')

Bases: unittest.case.TestCase

test_corrupted_entry()
test_exact_entry()
test_extra_spaced_entry()
test_similar_entries()
test_tagging_non_uni_quotes()

lexnlp.extract.common.tests.test_text_beautifier module

class lexnlp.extract.common.tests.test_text_beautifier.TestTextBeautifier(methodName='runTest')

Bases: unittest.case.TestCase

test_braces_shape()
test_doubled_quotes()
test_find_transformed_word()
test_misplaced_quotes()
test_mixshaped_quotes()
test_negative()
test_quotes_coords()
test_strip_pair_symbols()
test_strip_pair_symbols_coords()
test_strip_pair_symbols_untouched()
test_strip_text_coords()
test_unbalanced_braces()

lexnlp.extract.common.tests.test_universal_courts_parser module

class lexnlp.extract.common.tests.test_universal_courts_parser.TestUniversalCourtsParser(methodName='runTest')

Bases: unittest.case.TestCase

make_en_parser()
parse_courts_legacy_function(text: str)
test_check_match_attrs()
test_compare_to_legacy_parser()

Module contents