lexnlp.extract.de.tests package¶
Submodules¶
lexnlp.extract.de.tests.test_amounts module¶
-
class
lexnlp.extract.de.tests.test_amounts.AssertionMixin(methodName='runTest')¶ Bases:
unittest.case.TestCase-
assertOneOK(num, writ_num)¶
-
assertSortedByLocationListEqual(list1, list2)¶
-
assertSortedListEqual(list1, list2)¶
-
-
class
lexnlp.extract.de.tests.test_amounts.TestGetAmounts(methodName='runTest')¶ Bases:
lexnlp.extract.de.tests.test_amounts.AssertionMixinTest prepared for lexnlp method get_amounts
-
assertOneOK(num, writ_num)¶
-
test_annotations()¶
-
test_file_samples()¶
-
test_mix_num_written()¶
-
test_multiple_values_in_string()¶
-
test_non_writ_number()¶
-
test_nums= (2, 15, 67, 128, 709, 1234, 3005, 16070, 735900, 900100, 999999, 1234567, 2000000)¶
-
test_writ_big_number()¶
-
test_writ_half()¶
-
test_writ_mixed_number()¶
-
test_writ_numbers()¶
-
test_writ_numbers_ord()¶
-
test_writ_quarter()¶
-
test_wrong_cases()¶
-
lexnlp.extract.de.tests.test_citations module¶
-
class
lexnlp.extract.de.tests.test_citations.CustomAssertionMixin(methodName='runTest')¶ Bases:
lexnlp.extract.de.tests.test_amounts.AssertionMixin-
assertSortedListEqual(list1, list2)¶
-
lexnlp.extract.de.tests.test_copyrights module¶
-
class
lexnlp.extract.de.tests.test_copyrights.TestParseDeCourts(methodName='runTest')¶ Bases:
unittest.case.TestCasesiemens.com globale Website © Siemens 1996 – 2019 Impressum Datenschutz
© 2019 urheberrecht.de | Alle Angaben ohne Gewähr
Copyright © Mustervorlage und Vertrag kostenlos: Vorlagen für Beruf und Privat 2019.
-
test_file_samples()¶
-
test_parse_company_afterwards()¶
-
test_parse_empty_text()¶
-
lexnlp.extract.de.tests.test_court_citations module¶
lexnlp.extract.de.tests.test_courts module¶
-
class
lexnlp.extract.de.tests.test_courts.TestParseDeCourts(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_file_samples()¶
-
test_load_courts()¶
-
test_load_courts_with_toponims()¶
-
test_parse_baden_baden_court()¶
-
test_parse_empty_text()¶
-
test_parse_precise_and_type_only()¶
-
test_parse_simply_phrase()¶
-
lexnlp.extract.de.tests.test_dates module¶
Unit tests for Dates.
-
class
lexnlp.extract.de.tests.test_dates.TestDeDatesPlain(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_dates()¶
-
test_file_samples()¶
-
-
lexnlp.extract.de.tests.test_dates.get_dates_ordered(text: str) → List[lexnlp.extract.common.annotations.date_annotation.DateAnnotation]¶
lexnlp.extract.de.tests.test_definitions module¶
-
class
lexnlp.extract.de.tests.test_definitions.TestParseDeutscheDefinitions(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_file_samples()¶
-
test_parse_de_definitions_im_sinne()¶
-
test_parse_de_definitions_ist_jeder()¶
-
test_parse_de_definitions_quoted()¶
-
test_parse_de_definitions_simple()¶
-
test_parse_de_definitions_tail_break()¶
-
test_parse_for_clear_def_name()¶
-
lexnlp.extract.de.tests.test_durations module¶
-
class
lexnlp.extract.de.tests.test_durations.TestGetDurations(methodName='runTest')¶ Bases:
lexnlp.extract.de.tests.test_amounts.AssertionMixin-
test_complex_durations()¶
-
test_duration_prefix()¶
-
test_file_samples()¶
-
test_written_duration()¶
-
-
lexnlp.extract.de.tests.test_durations.get_ordered_durations(text: str) → List[lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation]¶
lexnlp.extract.de.tests.test_geoentities module¶
-
class
lexnlp.extract.de.tests.test_geoentities.TestGetGeoEntities(methodName='runTest')¶ Bases:
lexnlp.extract.de.tests.test_amounts.AssertionMixin-
default_columns= ['Entity ID', 'Entity Category', 'Entity Name', 'Entity Priority', 'German Name', 'ISO-3166-2', 'ISO-3166-3', 'Alias']¶
-
test_de_annotations()¶
-
test_extract_geo()¶
-
test_file_samples()¶
-
-
lexnlp.extract.de.tests.test_geoentities.get_ordered_geo_annotations(text: str) → List[lexnlp.extract.common.annotations.geo_annotation.GeoAnnotation]¶
lexnlp.extract.de.tests.test_laws module¶
-
class
lexnlp.extract.de.tests.test_laws.TestParseDeLaws(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_file_samples()¶
-
test_parse_empty_text()¶
-
test_parse_simply_phrase()¶
-
test_uninitialized()¶
-
-
lexnlp.extract.de.tests.test_laws.get_ordered_law_annotations(text: str) → List[lexnlp.extract.common.annotations.law_annotation.LawAnnotation]¶
-
lexnlp.extract.de.tests.test_laws.setup_parser()¶
lexnlp.extract.de.tests.test_percents module¶
-
class
lexnlp.extract.de.tests.test_percents.TestGetPercents(methodName='runTest')¶ Bases:
lexnlp.extract.de.tests.test_amounts.AssertionMixin-
test_annotations()¶
-
test_file_samples()¶
-
test_percent_prefix()¶
-
test_written_percent()¶
-
-
lexnlp.extract.de.tests.test_percents.get_ordered_percent_annotations(text: str) → List[lexnlp.extract.common.annotations.percent_annotation.PercentAnnotation]¶