Use keywords to determine if a protected concept is present in text.
- lang : The language of the text. Currently only 'en' and 'de' are supported.
- use_tokenizer : If keywords should only be searched in tokenized text. Can be useful for short keywords like 'she'.
- ValueError : If the language is not supported.
Detect concepts present in texts.
Returns a list of texts with the concept present.
- texts : List of texts to look for protected concepts.
- concepts_to_consider : List of concepts to consider. If None, all concepts are considered.
List of texts where protected concepts are detected.