Functionpowerset powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3) Args: iterable: Returns:
plugins/hanlp_common/hanlp_common/util.py:10
Methodpredict(
self,
data: Union[str, List[str]], num_beams=5, max_length=1024, beautiful_amr_graph
hanlp/components/amr/amrbart/bart_amr_generation.py:79
Methodpredict(
self,
data: Union[str, List[str]], num_beams=5, max_length=1024, beautiful_amr_graph
hanlp/components/amr/amrbart/bart_amr_parser.py:80
Methodpredict(self, data: Union[List[str], List[List[str]]], batch_size: int = None, ret_tokens=True, **kwargs)
hanlp/components/ner/biaffine_ner/biaffine_ner.py:232
Methodpredict(self, data: Any, batch_size=None, batch_max_tokens=None, conll=True, **kwargs)
hanlp/components/parsers/biaffine/biaffine_dep.py:41
Methodpredict(self, masked_sents: Union[str, List[str]], batch_size=32, topk=10, **kwargs)
hanlp/components/lm/mlm.py:74
Methodpredict(self, data: Union[str, List[str]], batch_size: int = None, fmt='dict', **kwargs)
hanlp/components/srl/span_rank/span_rank.py:264
Methodpredictions_to_human(self, predictions, outputs, data, use_pos, conll=True)
hanlp/components/parsers/biaffine/biaffine_sdp.py:139
Methodpredictions_to_human(self, predictions, outputs, data, use_pos, conll=True)
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:200
Methodprepare_inputs_for_generation(self, input_ids, past=None, attention_mask=None, use_cache=None, **kwargs)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1874