





"""simple docstring"""

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        __a							(			A )       ->						str:



   '''simple docstring'''



   re.sub("<n>" ,	"" ,	_A )  # 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(_A ) )



from __future__ import annotations

import numpy as np
def 							UpperCamelCase_(					_A :list[float]	)->		Optional[Any]:
			return np.maximum(0					,  _A	)


if __name__ == "__main__":
						print(np.array(relu([-1, 0, 5])))  # --> [0, 0, 5]


