Fg-selective-spanish.bin «HIGH-QUALITY»

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"]

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"]

Hear the difference. Download the Demo.

Download the Demo Version >>

 

By using this Show Cue Systems website you agree to our use of cookies to enhance your user experience. I understand.