11 lines
291 B
Python
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
|