Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompting -- collect base classes that allows such input processing #447

Closed
Tracked by #441
nicolay-r opened this issue Feb 19, 2023 · 0 comments
Closed
Tracked by #441
Assignees
Labels

Comments

@nicolay-r
Copy link
Owner

nicolay-r commented Feb 19, 2023

Something like that:

class PromptedSampleRowProvider(BaseSampleRowProvider):
    """
        Sample, enriched with the prompt technique.
    """

    def _fill_row_core(self, row, text_opinion_linkage, index_in_linked, etalon_label,
                       parsed_news, sentence_ind, s_ind, t_ind):

        row = super(PromptedSampleRowProvider, self)._fill_row_core(row=row,
                                                                    text_opinion_linkage=text_opinion_linkage,
                                                                    index_in_linked=index_in_linked,
                                                                    etalon_label=etalon_label,
                                                                    parsed_news=parsed_news,
                                                                    sentence_ind=sentence_ind,
                                                                    s_ind=s_ind,
                                                                    t_ind=t_ind)

        # TODO. Here is suppose to be a technique for row.

        return row
@nicolay-r nicolay-r added the task label Feb 19, 2023
@nicolay-r nicolay-r self-assigned this Feb 19, 2023
@nicolay-r nicolay-r changed the title Promptings Prompting -- collect base classes that allows such input processing Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant