Hi @ljvmiranda921 thank you for your feedback
Im workin on Active learning with a custom model
to explain what I have done :
1 - in step 1 i used the model to predict and score entities
stream = TXT('Prodigy_data.txt')
labeles is a list of lists : [[''O','O','BPATIENT','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O'],['O','B-DOCTOR','I-DOCTOR','I-DOCTOR','B-DOCTOR','I-DOCTOR','O','O','O','O','O','O','B-STR','I-STR','I-STR','I-STR','O','O','O','O','BZIP','BVILLE','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','O','B-VILLE'], ...........]
the generated predictions and scores
in spans i have the y_pred not y_t(labeles)
step 2 : Sort the stream by score using prefer_uncertain,
Resort stream to prefer uncertain scores.
in step 3:
for the update i have my training fuction:
the iterator is my train_dataloder:
but in prodigy we use stream
i don't know how to do the update based on the answers: accept , reject and ignore
** The update method should receives the examples with an added "answer" key that either maps to "accept",**
** "reject" or "ignore".**
another question
i used my model to highlight suggestions for me and i have this result
my model didnt detect one entite (X) : can i use in this case the active learning by corecting this entite (x) with Doctor and then i press ACCEPT
Will the model be able to learn from this changes
and what if i have more entities to add or correct