Closed Wirg closed 4 years ago
Hi @Wirg ,
You could try using the resources
property of labeling functions, to pass in DATA to each LF, and compute the same_author_sentences
field within the LF.
Hi @brahmaneya,
Thank you for your answer. I am not sure how to use that field. I have seen exemples where it's used to insert a knowledge base. For example in this tutorial :
What I would like is to use data that I will insert when I use applier.apply(input_data)
, this data would be call specific.
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Is your feature request related to a problem? Please describe.
⚠️ I am using
PandasLFApplier
and it might be related to my way of using it. ⚠️ This is not my real use case but a NLP one that I think might clarify my issue. I am working on a CV task.Each datapoint represents a sentence that might be true or false. To know if this sentence is true or false, I may want to use a trust indicator from :
To do that, I have to duplicated the whole data in my rows, or have the data coming in the applier globally accessible at the same level that all the LFs & preprocessor.
In this case, I can not properly reuse the applier because what comes into
applier.apply
has to beDATA
.Describe the solution you'd like
Being able to pass metadata, in the apply call that could be used by the different mappers.
Describe alternatives you've considered
I have considered :
DATA