Skip to main content

Fg-selective-spanish.bin Instant

def is_relevant_spanish(text, threshold=0.5): pred = model.predict(text) # pred = (('__label__select',), array([0.92])) label, prob = pred[0][0], pred[1][0] return label == "__label__select" and prob >= threshold texts = ["Hola, necesito ayuda con mi pedido", "Lorem ipsum dolor sit amet", "Buy cheap viagra ahora mismo"]

reach logo

At Reach and across our entities we and our partners use information collected through cookies and other identifiers from your device to improve experience on our site, analyse how it is used and to show personalised advertising. You can opt out of the sale or sharing of your data, at any time clicking the "Do Not Sell or Share my Data" button at the bottom of the webpage. Please note that your preferences are browser specific. Use of our website and any of our services represents your acceptance of the use of cookies and consent to the practices described in our Privacy Notice and Terms and Conditions.