infineac.process_text.get_strategies#

infineac.process_text.get_strategies(lst: list = [], strategy_keywords: dict[str, list[str]] = {'adaptation': ['adapt', 'relocate'], 'exit': ['cancel', 'discontinue', 'divest', 'exit', 'leave', 'left', 'liquidate', 'pull out', 'retreat', 'suspend', 'terminate', 'withdraw'], 'stay': ['continue', 'hold', 'keep', 'maintain', 'remain', 'stay', 'wait']}, modifier_words: list[str] = ["can't", 'cannot', "don't", 'not'], dataframe: DataFrame | None = None) dict[str, list[bool]] | DataFrame[source]#

Searches for the strategy_keywords in a list of strings or DataFrame and returns a boolean list or DataFrame with the results (for each strategy).