lexnlp.extract.common.durations package¶
Submodules¶
lexnlp.extract.common.durations.durations_parser module¶
-
class
lexnlp.extract.common.durations.durations_parser.DurationParser¶ Bases:
object-
DURATION_MAP= {}¶
-
DURATION_PTN_RE= None¶
-
GET_AMOUNTS= None¶
-
INNER_CONJUNCTIONS= []¶
-
INNER_PUNCTUATION= None¶
-
LOCALE= 'en'¶
-
classmethod
check_ant_continues_group(ant_group: List[lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation], ant: lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation, text: str) → bool¶
-
classmethod
get_all_annotations(text: str, float_digits=4) → List[lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation]¶
-
classmethod
get_annotations(text: str, float_digits=4) → List[lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation]¶
-
classmethod
sum_annotations(ant_group: List[lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation]) → lexnlp.extract.common.annotations.duration_annotation.DurationAnnotation¶
-