






from collections.abc import Sequence


def 				__lowerCamelCase     (							__lowerCAmelCase							:					Sequence[float]					,							__lowerCAmelCase							:					float							)     ->  float:
   return sum(c * (x**i) for i, c in enumerate(__lowerCAmelCase							)							)


def 				__lowerCamelCase     (							__lowerCAmelCase							:					Sequence[float]					,							__lowerCAmelCase							:					float							)     ->  float:
   __UpperCamelCase	:			Any					=					0.0
   for coeff in reversed(__lowerCAmelCase							):
      __UpperCamelCase	:			List[Any]					=					result * x + coeff
   return result


if __name__ == "__main__":
       UpperCamelCase    							=      (0.0, 0.0, 5.0, 9.3, 7.0)
       UpperCamelCase    							=      10.0
       print(evaluate_poly(poly, x))
       print(horner(poly, x))











import re

from filelock import FileLock


try:
       import nltk

       UpperCamelCase    							=      True
except (ImportError, ModuleNotFoundError):
       UpperCamelCase    							=      False

if NLTK_AVAILABLE:
       with FileLock('.lock') as lock:
              nltk.download('punkt', quiet=True)


def 				__lowerCamelCase     (							__lowerCAmelCase							:					str							)     ->  str:
   re.sub("""<n>"""					,							""""""					,							__lowerCAmelCase							)  # remove pegasus newline char
   assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
   return "\n".join(nltk.sent_tokenize(__lowerCAmelCase							)							)



