def predict(self, data, pred=None, lang=None, buckets=8, batch_size=5000, prob=False, mbr=True, tree=True, proj=True, verbose=True, **kwargs):
    '\n        Args:\n            data (list[list] or str):\n                The data for prediction, both a list of instances and filename are allowed.\n            pred (str):\n                If specified, the predicted results will be saved to the file. Default: ``None``.\n            lang (str):\n                Language code (e.g., ``en``) or language name (e.g., ``English``) for the text to tokenize.\n                ``None`` if tokenization is not required.\n                Default: ``None``.\n            buckets (int):\n                The number of buckets that sentences are assigned to. Default: 32.\n            batch_size (int):\n                The number of tokens in each batch. Default: 5000.\n            prob (bool):\n                If ``True``, outputs the probabilities. Default: ``False``.\n            mbr (bool):\n                If ``True``, performs MBR decoding. Default: ``True``.\n            tree (bool):\n                If ``True``, ensures to output well-formed trees. Default: ``False``.\n            proj (bool):\n                If ``True``, ensures to output projective trees. Default: ``False``.\n            verbose (bool):\n                If ``True``, increases the output verbosity. Default: ``True``.\n            kwargs (dict):\n                A dict holding unconsumed arguments for updating prediction configs.\n\n        Returns:\n            A :class:`~supar.utils.Dataset` object that stores the predicted results.\n        '
    return super().predict(**Config().update(locals()))
Args:
    data (list[list] or str):
        The data for prediction, both a list of instances and filename are allowed.
    pred (str):
        If specified, the predicted results will be saved to the file. Default: ``None``.
    lang (str):
        Language code (e.g., ``en``) or language name (e.g., ``English``) for the text to tokenize.
        ``None`` if tokenization is not required.
        Default: ``None``.
    buckets (int):
        The number of buckets that sentences are assigned to. Default: 32.
    batch_size (int):
        The number of tokens in each batch. Default: 5000.
    prob (bool):
        If ``True``, outputs the probabilities. Default: ``False``.
    mbr (bool):
        If ``True``, performs MBR decoding. Default: ``True``.
    tree (bool):
        If ``True``, ensures to output well-formed trees. Default: ``False``.
    proj (bool):
        If ``True``, ensures to output projective trees. Default: ``False``.
    verbose (bool):
        If ``True``, increases the output verbosity. Default: ``True``.
    kwargs (dict):
        A dict holding unconsumed arguments for updating prediction configs.

Returns:
    A :class:`~supar.utils.Dataset` object that stores the predicted results.
def predict(self, data, pred=None, lang=None, buckets=8, batch_size=5000, prob=False, mbr=True, tree=True, proj=True, verbose=True, **kwargs):
    '\n        Args:\n            data (list[list] or str):\n                The data for prediction, both a list of instances and filename are allowed.\n            pred (str):\n                If specified, the predicted results will be saved to the file. Default: ``None``.\n            lang (str):\n                Language code (e.g., ``en``) or language name (e.g., ``English``) for the text to tokenize.\n                ``None`` if tokenization is not required.\n                Default: ``None``.\n            buckets (int):\n                The number of buckets that sentences are assigned to. Default: 32.\n            batch_size (int):\n                The number of tokens in each batch. Default: 5000.\n            prob (bool):\n                If ``True``, outputs the probabilities. Default: ``False``.\n            mbr (bool):\n                If ``True``, performs MBR decoding. Default: ``True``.\n            tree (bool):\n                If ``True``, ensures to output well-formed trees. Default: ``False``.\n            proj (bool):\n                If ``True``, ensures to output projective trees. Default: ``False``.\n            verbose (bool):\n                If ``True``, increases the output verbosity. Default: ``True``.\n            kwargs (dict):\n                A dict holding unconsumed arguments for updating prediction configs.\n\n        Returns:\n            A :class:`~supar.utils.Dataset` object that stores the predicted results.\n        '
    return super().predict(**Config().update(locals()))