def update(self, docs=None, split=<NUM_LIT:0>, lfs=None, parallelism=None, progress_bar=True):
if lfs is None:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if len(lfs) != len(self.candidate_classes):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.apply(<EOL>docs=docs,<EOL>split=split,<EOL>lfs=lfs,<EOL>train=True,<EOL>clear=False,<EOL>parallelism=parallelism,<EOL>progress_bar=progress_bar,<EOL>)<EOL>
Update the labels of the specified candidates based on the provided LFs.

        :param docs: If provided, apply the updated LFs to all the candidates
            in these documents.
        :param split: If docs is None, apply the updated LFs to the candidates
            in this particular split.
        :param lfs: A list of lists of labeling functions to update. Each list
            should correspond with the candidate_classes used to initialize the
            Labeler.
        :param parallelism: How many threads to use for extraction. This will
            override the parallelism value used to initialize the Labeler if
            it is provided.
        :type parallelism: int
        :param progress_bar: Whether or not to display a progress bar. The
            progress bar is measured per document.
        :type progress_bar: bool