MCPcopy Create free account

hub / github.com/hankcs/HanLP / functions

Functions2,968 in github.com/hankcs/HanLP

Functionunpack_srl
(sample: dict)
hanlp/datasets/srl/loaders/conll2012.py:176
Functionunpack_tree_to_features
(sample: dict)
hanlp/datasets/parsing/loaders/constituency_dataset.py:22
Methodup
(self)
hanlp/metrics/parsing/labeled_f1.py:65
Methodup
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:65
Methodup
(self)
hanlp/metrics/parsing/span.py:82
Methodupdate_edge_label
(self, x, y, old, new)
plugins/hanlp_common/hanlp_common/amr.py:402
Methodupdate_info
(node, relation, parent, token)
plugins/hanlp_common/hanlp_common/amr.py:559
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)
hanlp/components/tokenizers/tok.py:42
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[s
hanlp/components/mtl/tasks/pos.py:148
Methodupdate_metrics
(self, batch: Dict[str, Any], output: Union[torch.Tensor, Dict[s
hanlp/components/mtl/tasks/constituency.py:137
Methodupdate_metrics
(self, batch: Dict[str, Any], output: Union[torch.Tensor, Dict[s
hanlp/components/mtl/tasks/__init__.py:124
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[s
hanlp/components/mtl/tasks/amr.py:111
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[s
hanlp/components/mtl/tasks/lem.py:111
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[s
hanlp/components/mtl/tasks/ner/tag_ner.py:149
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
Methodupdate_state
(self, y_true, y_pred, sample_weight=None)
hanlp/components/taggers/transformers/metrics_tf.py:13
Methodupdate_state
(self, y_true: tf.Tensor, y_pred: tf.Tensor, sample_weight: tf.Tensor = None, **kwargs)
hanlp/metrics/chunking/chunking_f1_tf.py:39
Methodupdate_tags
(self, true_tags, pred_tags)
hanlp/metrics/chunking/iobes_tf.py:16
Methodupdate_tags
(self, true_tags, pred_tags)
hanlp/metrics/chunking/bmes_tf.py:19
Methodur
(self)
hanlp/metrics/parsing/labeled_f1.py:59
Methodur
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:59
Methodur
(self)
hanlp/metrics/parsing/span.py:86
Methoduse_pos
(self)
hanlp/components/parsers/biaffine/biaffine_dep.py:143
Methoduse_pos
(self)
hanlp/transform/conll_tf.py:37
Methoduse_transformer
(self)
hanlp/components/ner/biaffine_ner/biaffine_ner.py:67
Methodvertices
(self)
hanlp/components/parsers/parse_alg.py:82
Methodvertices
(self)
hanlp/components/parsers/alg_tf.py:162
Methodvertices
(self)
hanlp/components/parsers/biaffine_tf/alg.py:162
Methodviterbi_accuracy
(self)
hanlp/layers/crf/crf_layer_tf.py:118
Functionviterbi_decode
Decode the highest scoring sequence of tags outside of TensorFlow. This should only be used at test time. Args: score: A [seq_len,
hanlp/layers/crf/crf_tf.py:333
Functionvocab_from_tsv
(tsv_file_path, lower=False, lock_word_vocab=False, lock_char_vocab=True, lock_tag_vocab=True)
hanlp/transform/tsv_tf.py:42
Functionvocab_from_txt
(txt_file_path, bigram_only=False, window_size=4, **kwargs)
hanlp/transform/txt_tf.py:111
Methodvocab_name
(self)
hanlp/layers/embeddings/char_cnn.py:133
Methodvocab_name
(self)
hanlp/layers/embeddings/char_rnn.py:101
Methodvocab_path
(self)
hanlp/datasets/lm/loaders/lm_dataset.py:63
Functionwords_to_bmes
(words)
hanlp/transform/txt_tf.py:27
Functionworker
(job)
plugins/hanlp_demo/hanlp_demo/zh/tf/demo_multiprocess.py:10
Methodwrite_output
(self, yhat, y, mask, batch, prediction, output)
hanlp/components/taggers/rnn_tagger.py:194
Methodwrite_prediction
(self, prediction, batch, output: TextIO)
hanlp/components/tokenizers/transformer.py:157
Methodx_to_idx
(self, x)
hanlp/components/taggers/ngram_conv/ngram_conv_tagger.py:38
Methodx_to_idx
(self, x)
hanlp/components/taggers/transformers/transformer_transform_tf.py:111
Methodx_to_idx
(self, x)
hanlp/components/classifiers/transformer_classifier_tf.py:81
Methodx_to_idx
(self, x)
hanlp/transform/conll_tf.py:40
Methodx_to_idx
(self, x)
hanlp/transform/tacred_tf.py:95
Methodx_to_idx
(self, x)
hanlp/transform/tsv_tf.py:119
Methodx_to_idx
(self, x)
hanlp/transform/table_tf.py:87
Methody_to_idx
(self, y)
hanlp/components/taggers/ngram_conv/ngram_conv_tagger.py:44
Methody_to_idx
(self, y)
hanlp/components/taggers/transformers/transformer_transform_tf.py:114
Methody_to_idx
(self, y)
hanlp/components/classifiers/transformer_classifier_tf.py:85
Methody_to_idx
(self, y)
hanlp/transform/conll_tf.py:44
Methody_to_idx
(self, y)
hanlp/transform/tacred_tf.py:105
Methody_to_idx
(self, y)
hanlp/transform/tsv_tf.py:122
Methody_to_idx
(self, y)
hanlp/transform/table_tf.py:65
Methody_to_idx
(self, y)
hanlp/transform/text_tf.py:76
← previous2,901–2,968 of 2,968, ranked by callers