I’m looking for the python equivalent of toxicity :
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.0.0/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/toxicity@1.2.2"></script>
toxicity.load(threshold).then((model) =>
{
model.classify(sentences).then((predictions) =>
{
}
}
I don’t see anything related to toxicity listed at https://www.tensorflow.org/api_docs/python/tf/all_symbols