Giter Club home page Giter Club logo

Comments (4)

zsimjee avatar zsimjee commented on June 13, 2024 2

Great discussion. I think that using both is ideal EXCEPT for the added latency. We should see if we could parallelize the two reqs and not hurt perf. If so, we should do that. Otherwise, we should see the magnitude on the hit on perf if we run these 2 serially. If the magnitude is large, it might make sense to parameterize the validator to use one or the other.

from guardrails.

thekaranacharya avatar thekaranacharya commented on June 13, 2024 1

Hello @harsh306 , thanks for opening this. We're currently using alt-profanity-check for our ProfanityFree validator. According to the description given by alt-profanity-check, they use a linear SVM model to detect profane words instead of a static blacklist. Here's their comparison with better-profanity:

Screenshot 2024-03-12 at 9 56 25 AM

Really like the examples which include special characters and are still profane, which I don't think would be covered by the SVM model. It's an age-old question: whether to use a static match vs an ML model to detect. I think what we can do though - is use a combination of both approaches with an or, so that we can use the best of both worlds. What do you think @ShreyaR @zsimjee @CalebCourier ?

from guardrails.

thekaranacharya avatar thekaranacharya commented on June 13, 2024

Sounds good. Will close this issue once we add this update.
TODO: Add update to ProfanityFree validator.

from guardrails.

hpathak-godaddy avatar hpathak-godaddy commented on June 13, 2024

Thanks, Looking forward to the PR

from guardrails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.