Spaces:
Sleeping
Sleeping
Victoria Shevchenko commited on
Commit ·
7d6269f
1
Parent(s): df2c973
added type hints
Browse files40 unmodified lines414243444445464740 unmodified lines return text
@tooldef extract_entities(text, desired_entities):def extract_entities(text: str, desired_entities: list) -> list: """A tool that extracts entities from a text using spaCy. Args: text: A string representing the text to extract entities from.app.py+1-1