MCPcopy Create free account

hub / github.com/hankcs/HanLP / functions

Functions2,968 in github.com/hankcs/HanLP

Method_repl1
(match)
hanlp/components/amr/amrbart/model_interface/tokenization_bart.py:424
Method_repl2
(match)
hanlp/components/amr/seq2seq/dataset/tokenization_bart.py:615
Method_repl2
(match)
hanlp/components/amr/seq2seq/dataset/tokenization_t5.py:610
Method_repl2
(match)
hanlp/components/amr/amrbart/model_interface/tokenization_bart.py:432
Method_report
(self, loss, metric)
hanlp/components/parsers/biaffine/structual_attention.py:229
Method_resource_apply_dense
(self, grad, var, apply_state=None)
hanlp/optimizers/adamw/optimization.py:194
Method_resource_apply_sparse
(self, grad, var, indices, apply_state=None)
hanlp/optimizers/adamw/optimization.py:201
Method_savable_config
(self)
hanlp/components/distillation/distillable_component.py:50
Method_savable_config
(self)
hanlp/common/torch_component.py:340
Function_scan_fn
(state, inputs)
hanlp/layers/crf/crf_tf.py:321
Method_send_post
(self, url, form: Dict[str, Any])
plugins/hanlp_restful/hanlp_restful/__init__.py:144
Method_set_gradient_checkpointing
(self, module, value=False)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:513
Method_sort_attributes
(self)
plugins/hanlp_common/hanlp_common/amr.py:189
Function_test_sst2
()
hanlp/transform/glue_tf.py:25
Function_test_text_transform
(tokenizer)
hanlp/transform/transformer_tokenizer.py:705
Method_tokenize
Tokenize a string. Modified in order to handle sentences with recategorization pointers
hanlp/components/amr/amrbart/model_interface/tokenization_bart.py:66
Method_tokenize
(self, sample: dict)
hanlp/layers/embeddings/word2vec.py:276
Method_update_weights
()
hanlp/layers/weight_normalization.py:141
Function_validate
()
hanlp/layers/embeddings/contextual_string_embedding.py:198
Methodabout
Get the information about server and your client. Returns: A dict containing your rate limit and server version etc.
plugins/hanlp_restful/hanlp_restful/__init__.py:134
MethodabstractMeaningRepresentationText
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:149
MethodabstractMeaningRepresentationTokens
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:155
Methodabstract_attribute
(value)
plugins/hanlp_common/hanlp_common/amr.py:740
Methodabstract_node
(value)
plugins/hanlp_common/hanlp_common/amr.py:737
MethodabstractiveSummarization
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:140
MethodabstractiveSummarization
Abstractive Summarization is the task of generating a short and concise summary that captures the salient ideas of the source text. The generated summ
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:471
Methodabstractive_summarization
r""" Abstractive Summarization is the task of generating a short and concise summary that captures the salient ideas of the source text. The g
plugins/hanlp_restful/hanlp_restful/__init__.py:443
Methodaccuracy
(y_true, y_pred)
hanlp/layers/crf/crf_layer_tf.py:119
Functionaccuracy_score
Accuracy classification score. In multilabel classification, this function computes subset accuracy: the set of labels predicted for a sa
hanlp/metrics/chunking/sequence_labeling.py:185
Methodadd_idx
(samples)
hanlp/common/torch_component.py:479
Functionadd_lemma_rules_to_sample
(sample: dict)
hanlp/components/lemmatizer.py:13
Methodadd_source_side_tags_to_target_side
(_src_tokens, _src_tags)
plugins/hanlp_common/hanlp_common/amr.py:626
Functionadjust_root_score_then_add_secondary_arcs
(arc_scores, rel_scores, tree, root_rel_idx)
hanlp/components/parsers/parse_alg.py:304
Functionappend_bos
(sample: dict)
hanlp/components/parsers/ud/util.py:15
Functionappend_bos
(sample: dict)
hanlp/datasets/parsing/amr.py:48
Functionappend_bos
Args: sample: pos_key: bos: A special token inserted to the head of tokens. Returns:
hanlp/datasets/parsing/loaders/conll_dataset.py:60
Functionappend_bos_eos
(sample: dict)
hanlp/datasets/parsing/loaders/conll_dataset.py:80
Functionappend_bos_eos
(sample: dict)
hanlp/datasets/parsing/loaders/constituency_dataset.py:36
Functionappend_bos_to_form_pos
(sample, pos_key='CPOS')
hanlp/datasets/parsing/semeval15.py:41
Functionappend_criteria_token
(sample: dict, criteria_tokens: Dict[str, int], criteria_token_map: dict)
hanlp/datasets/tokenization/loaders/multi_criteria_cws/mcws_dataset.py:87
Functionatt_ce_loss
* Calculates the cross-entropy loss between `attention_S` and `attention_T`, where softmax is to applied on ``dim=-1``. * If the `inputs_mas
hanlp/components/distillation/losses.py:89
Functionatt_ce_mean_loss
* Calculates the cross-entropy loss between `attention_S` and `attention_T`, where softmax is to applied on ``dim=-1``. * If the shape is (*b
hanlp/components/distillation/losses.py:110
Functionatt_mse_loss
* Calculates the mse loss between `attention_S` and `attention_T`. * If the `inputs_mask` is given, masks the positions where ``input_mask==0
hanlp/components/distillation/losses.py:43
Functionatt_mse_sum_loss
* Calculates the mse loss between `attention_S` and `attention_T`. * If the the shape is (*batch_size*, *num_heads*, *length*, *length*), su
hanlp/components/distillation/losses.py:64
Methodbatch_encode_graphs
(self, graphs, device=torch.device('cpu'))
hanlp/components/amr/seq2seq/dataset/tokenization_bart.py:201
Methodbatch_encode_graphs
(self, graphs, device=torch.device('cpu'))
hanlp/components/amr/seq2seq/dataset/tokenization_t5.py:191
Methodbatch_encode_sentences
(self, sentences, device=torch.device('cpu'))
hanlp/components/amr/seq2seq/dataset/tokenization_bart.py:181
Methodbatch_encode_sentences
(self, sentences, device=torch.device('cpu'))
hanlp/components/amr/seq2seq/dataset/tokenization_t5.py:171
Functionbatch_make_coref_json_if_necessary
(json_files)
hanlp/datasets/srl/ontonotes5/_utils.py:599
Functionbatch_make_ner_json_if_necessary
(json_files)
hanlp/datasets/srl/ontonotes5/_utils.py:565
Functionbatch_make_srl_json_if_necessary
(json_files)
hanlp/datasets/srl/ontonotes5/_utils.py:590
Functionbatch_remove_empty_category_if_necessary
(json_files)
hanlp/datasets/srl/ontonotes5/_utils.py:531
Methodbatched_inputs_to_batches
Convert batched inputs to batches of samples Args: corpus(list): A list of inputs indices(list): A list of indices, each
hanlp/transform/conll_tf.py:174
Methodbatched_inputs_to_batches
(self, corpus, indices, shuffle)
hanlp/transform/conll_tf.py:734
Methodbatchify
(self)
hanlp/common/dataset.py:610
Functionbioul_tags_to_spans
Given a sequence corresponding to BIOUL tags, extracts spans. Spans are inclusive and can be of zero length, representing a single word span.
hanlp/utils/span_util.py:465
Functionbmes_tags_to_spans
Given a sequence corresponding to BMES tags, extracts spans. Spans are inclusive and can be of zero length, representing a single word span.
hanlp/utils/span_util.py:673
Functionbmes_to_flat
(inpath, outpath)
hanlp/transform/text_tf.py:91
Methodbos
(self)
hanlp/transform/conll_tf.py:95
Methodbuild
(self)
hanlp/layers/scalar_mix.py:155
Methodbuild
Build `Layer` Args: input_shape: Returns:
hanlp/layers/weight_normalization.py:71
Methodbuild
(self, input_shape)
hanlp/layers/embeddings/fast_text_tf.py:56
Methodbuild
(self, input_shape)
hanlp/layers/embeddings/concat_embedding.py:26
Methodbuild
(self, input_shape)
hanlp/layers/crf/crf_tf.py:390
Methodbuild
(self, lengths: List[int], shuffle=False, gradient_accumulation=1, **kwargs)
hanlp/common/dataset.py:810
Methodbuild_batch_wise_scheduler
(self, decoder: torch.nn.Module, **kwargs)
hanlp/components/mtl/tasks/__init__.py:105
Methodbuild_callbacks
(self, save_dir, logger, metrics, **kwargs)
hanlp/components/parsers/biaffine_parser_tf.py:497
Methodbuild_criterion
(self, **kwargs)
hanlp/components/amr/seq2seq/seq2seq_amr_parser.py:132
Methodbuild_criterion
(self, **kwargs)
hanlp/components/amr/amrbart/bart_amr_generation.py:50
Methodbuild_criterion
(self, **kwargs)
hanlp/components/amr/amrbart/bart_amr_parser.py:54
Methodbuild_criterion
(self, **kwargs)
hanlp/components/ner/biaffine_ner/biaffine_ner.py:73
Methodbuild_criterion
(self, decoder=None, **kwargs)
hanlp/components/parsers/constituency/crf_constituency_parser.py:41
Methodbuild_criterion
(self, **kwargs)
hanlp/components/parsers/ud/ud_parser.py:94
Methodbuild_criterion
(self, **kwargs)
hanlp/components/parsers/biaffine/biaffine_sdp.py:42
Methodbuild_criterion
(self, **kwargs)
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:99
Methodbuild_criterion
(self, **kwargs)
hanlp/components/classifiers/transformer_regression_hf.py:41
Methodbuild_criterion
(self, **kwargs)
hanlp/components/classifiers/transformer_classifier.py:140
Methodbuild_criterion
(self, **kwargs)
hanlp/components/classifiers/transformer_classifier_hf.py:41
Methodbuild_criterion
(self, **kwargs)
hanlp/components/lm/mlm.py:52
Methodbuild_criterion
(self, **kwargs)
hanlp/components/sts/transformer_sts.py:74
Methodbuild_criterion
(self, **kwargs)
hanlp/components/srl/span_rank/span_rank.py:71
Methodbuild_criterion
(self, decoder=None, **kwargs)
hanlp/components/srl/span_bio/span_bio.py:65
Methodbuild_criterion
(self, **kwargs)
hanlp/components/eos/ngram.py:91
Methodbuild_criterion
(self, **kwargs)
hanlp/components/mtl/tasks/dep_2nd.py:95
Methodbuild_criterion
(self, **kwargs)
hanlp/components/mtl/tasks/srl/rank_srl.py:110
Methodbuild_criterion
(self, model=None, **kwargs)
hanlp/components/mtl/tasks/tok/tag_tok.py:137
Methodbuild_criterion
(self, **kwargs)
hanlp/components/mtl/tasks/tok/reg_tok.py:55
Methodbuild_criterion
(self, **kwargs)
hanlp/layers/embeddings/fast_text.py:134
Methodbuild_criterion
(self, **kwargs)
hanlp/layers/embeddings/word2vec.py:194
Methodbuild_dataloader
(self, data, batch_size, shuffle, device, logger: logging.Logger = None, sampler_buil
hanlp/components/taggers/transformers/transformer_tagger.py:170
Methodbuild_dataloader
(self, data, transform: TransformList = None, training=False, device=None, logger: lo
hanlp/components/mtl/tasks/sdp.py:114
Methodbuild_dataloader
(self, data, transform: Callable = None, training=False, device=None, logger: logging
hanlp/components/mtl/tasks/dep_2nd.py:59
Methodbuild_dataloader
(self, data, transform: Callable = None,
hanlp/components/mtl/tasks/pos.py:113
Methodbuild_dataloader
(self, data, transform: Callable = None,
hanlp/components/mtl/tasks/constituency.py:78
Methodbuild_dataloader
Build a dataloader for training or evaluation. Args: data: Either a path or a list of samples. transform: Th
hanlp/components/mtl/tasks/__init__.py:78
Methodbuild_dataloader
(self, data, transform: TransformList = None, training=False, device=None, logger: lo
hanlp/components/mtl/tasks/dep.py:113
Methodbuild_dataloader
(self, data, transform: Callable = None,
hanlp/components/mtl/tasks/amr.py:70
Methodbuild_dataloader
(self, data, transform: Callable = None, training=False, device=None, logger: logging
hanlp/components/mtl/tasks/ud.py:73
Methodbuild_dataloader
(self, data: List[List[str]], transform: Callable = None,
hanlp/components/mtl/tasks/lem.py:76
Methodbuild_dataloader
(self, data, transform: TransformList = None, training=False
hanlp/components/mtl/tasks/ner/biaffine_ner.py:74
← previousnext →1,701–1,800 of 2,968, ranked by callers