exact_data2023/application/functions/irony.py
2023-06-10 01:51:01 +02:00

11 lines
291 B
Python

from transformers import pipeline
pipe = pipeline('text-classification', model="olczig/irony-polish-detection", tokenizer = "olczig/irony-polish-detection")
def irony_prediction(data):
result = pipe(data)
return result
def clear_data(data):
#czyszczenie danych
return data