get_amounts

lexnlp.extract.en.amounts.get_amounts(text: str, return_sources: bool = False, extended_sources: bool = True, float_digits: int = 4) → Generator[[Union[decimal.Decimal, Tuple[decimal.Decimal, str]], None], None]

Find possible amount references in the text. :param text: text :param return_sources: return amount AND source text :param extended_sources: return data around amount itself :param float_digits: round float to N digits, don’t round if None :return: list of amounts