You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model = OpenAI(api_key)
prompter = Prompter('multilabel_classification.jinja')
pipe = Pipeline(prompter, model)
classes = ['Medicine','Oncology','Metastasis','Breast cancer','Lung cancer','Cerebrospinal fluid','Tumor microenvironment','Single-cell RNA sequencing','Idiopathic intracranial hypertension']
sent = "The patient is a 93-year-old female with a medical history of chronic right hip pain, osteoporosis, hypertension, depression, and chronic atrial fibrillation admitted for evaluation and management of severe nausea and vomiting and urinary tract infection"
result = pipe.fit('multilabel_classification.jinja',
n_output_labels = len(classes),
domain = 'Clinical',
text_input = sent,
labels = classes)
print(eval(result['text']))
I got this error Pipeline.fit() got multiple values for argument 'text_input'
Thank you for taking the time to respond to me.
Have a good day
The text was updated successfully, but these errors were encountered:
Hello,
I would like to do MultiLabel Text-Classification
My code:
I got this error
Pipeline.fit() got multiple values for argument 'text_input'
Thank you for taking the time to respond to me.
Have a good day
The text was updated successfully, but these errors were encountered: