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_copyright_annotation()¶
-
test_cusip_annotation()¶
-
test_date_annotation()¶
-
test_format_copyright_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¶
lexnlp.extract.common.tests.test_datefinder_tokenizer module¶
lexnlp.extract.common.tests.test_dates module¶
Multi-language unit tests for Dates.
-
lexnlp.extract.common.tests.test_dates.test_de_dates()¶
-
lexnlp.extract.common.tests.test_dates.test_en_dates()¶
lexnlp.extract.common.tests.test_fact_extractor module¶
-
class
lexnlp.extract.common.tests.test_fact_extractor.TestFactExtractor(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_all_facts_en()¶
-
test_one_fact_de()¶
-
test_one_fact_dict_en()¶
-
test_one_fact_en()¶
-
-
lexnlp.extract.common.tests.test_fact_extractor.make_geoconfig()¶
lexnlp.extract.common.tests.test_phrase_position_finder module¶
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()¶
-