Methodupdate_metric(self, arc_scores, rel_scores, arcs, rels, mask, puncts, metric, batch=None)
hanlp/components/parsers/biaffine/structual_attention.py:215
Methodupdate_metric(self, arc_preds, rel_preds, arcs, rels, mask, puncts, metric, batch=None)
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:184
Methodupdate_metrics(self, metric, logits, y, mask, batch, prediction)
hanlp/components/tokenizers/multi_criteria_cws_transformer.py:74
Methodupdate_metrics(self, metric, logits, y, mask, batch, prediction)
hanlp/components/tokenizers/transformer.py:102
Methodupdate_metrics(self, metric, logits, y, mask, batch, prediction)
hanlp/components/ner/transformer_ner.py:39
Methodupdate_metrics(self, metric, logits, y, mask, batch, prediction)
hanlp/components/ner/rnn_ner.py:41
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/sdp.py:85
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/dep_2nd.py:72
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/dep.py:84
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/ud.py:102
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/ner/biaffine_ner.py:56
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/srl/bio_srl.py:93
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/srl/rank_srl.py:85
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/tok/tag_tok.py:126
Methodupdate_metrics(self, batch: Dict[str, Any],
output: Union[torch.Tensor, Dict[str, torch.Tensor], Iter
hanlp/components/mtl/tasks/tok/reg_tok.py:101
Methodwrite_output(self, yhat, y, mask, batch, prediction, output)
hanlp/components/taggers/rnn_tagger.py:194