exact_data2023/application/functions/irony.py

11 lines
291 B
Python
Raw Normal View History

2023-06-10 01:51:01 +02:00
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