Add a New WordNoMatch
Descriptor to Evidently
#1309
Labels
enhancement
New feature or request
hacktoberfest
Accepted contributions will count towards your hacktoberfest PRs
Add a New
WordNoMatch
Descriptor to EvidentlyAbout Hacktoberfest contributions: https://github.com/evidentlyai/evidently/wiki/Hacktoberfest-2024
Description:
Evidently already has an
ExcludesWords()
descriptor that checks if the text does not contain any specified words from a shared list.However, sometimes you might need to check that the text does not contain words specific to each row instead of a shared list.
Example:
What to Implement:
The new WordNoMatch() descriptor should:
with_column
parameter: This column contains a list of forbidden words specific to each row.lemmatize
parameter (defaultTrue
): WhenTrue
, this will consider inflected or variant forms of words. Works the same as in theExcludesWords()
descriptor.True
if the words from the list are not present in the row's text.False
if forbidden words are present.References:
ExcludesWords()
descriptor as reference.SemanticSimilarity
descriptor and theCustomPairColumnEval
template.The text was updated successfully, but these errors were encountered: