MCPcopy Create free account

hub / github.com/hankcs/HanLP / functions

Functions2,968 in github.com/hankcs/HanLP

Methodget_output_embeddings
(self)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1718
Methodget_pad_dict
(self)
hanlp/components/parsers/biaffine/biaffine_sdp.py:28
Methodget_pad_dict
(self)
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:147
Methodget_pos
Get the precisest pos for this word. Args: main_pos: Use the main pos (cpos or upos) or the minor pos (pos or xpos).
plugins/hanlp_common/hanlp_common/conll.py:164
Functionget_predicted_clusters
(top_span_starts, top_span_ends, predicted_antecedents)
hanlp/components/srl/span_rank/inference_utils.py:99
Functionget_range_vector
Returns a range vector with the desired size, starting at 0. The CUDA implementation is meant to avoid copy data from CPU to GPU. Args:
hanlp/components/parsers/ud/udify_util.py:340
Methodget_senseless_attributes
(self)
plugins/hanlp_common/hanlp_common/amr.py:265
Functionget_sibs
(sample: dict)
hanlp/datasets/parsing/loaders/conll_dataset.py:90
Methodget_special_tok_list
(self)
plugins/hanlp_common/hanlp_common/amr.py:858
Methodget_src_tokens
(self)
plugins/hanlp_common/hanlp_common/amr.py:169
Functionget_tensor_np
(t)
hanlp/components/srl/span_rank/layer.py:12
Methodget_tgt_tokens
(self)
plugins/hanlp_common/hanlp_common/amr.py:529
Methodget_token_from_idx
(self, idx)
plugins/hanlp_common/hanlp_common/amr.py:843
Methodget_tokenizer
(self)
hanlp/layers/embeddings/contextual_word_embedding.py:176
MethodgrammaticalErrorCorrection
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:163
MethodgrammaticalErrorCorrection
Grammatical Error Correction (GEC) is the task of correcting different kinds of errors in text such as spelling, punctuation, grammatical, and word ch
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:235
Methodgrammatical_error_correction
Grammatical Error Correction (GEC) is the task of correcting different kinds of errors in text such as spelling, punctuation, grammatical, an
plugins/hanlp_restful/hanlp_restful/__init__.py:475
Methodgraph
(self)
hanlp/transform/conll_tf.py:359
Functiongreedy_decode
Greedy decoding for SRL predicate-argument structures. Args: predict_dict: Dictionary of name to numpy arrays. srl_labels_inv: SRL la
hanlp/components/srl/span_rank/inference_utils.py:34
Methodgroup_by_span
(collection: Set[Tuple[int, int, str]])
hanlp/metrics/chunking/chunking_f1.py:89
Methodgroup_by_tag
(collection: Set[Tuple[int, int, str]])
hanlp/metrics/chunking/chunking_f1.py:75
Functiongroup_pa_by_p
(sample: dict)
hanlp/datasets/srl/loaders/conll2012.py:152
Functionguess_allowed_transitions
(labels)
hanlp/components/taggers/util.py:15
Functionhanlp_register
Registers a class with the Keras serialization framework. Args: arg: Returns:
hanlp/utils/tf_util.py:135
Methodhas_key
(self, token)
hanlp/common/vocab_tf.py:109
Methodhas_key
(self, token)
hanlp/common/vocab.py:149
MethodhashCode
()
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/Span.java:53
Functionhid_mse_loss
* Calculates the mse loss between `state_S` and `state_T`, which are the hidden state of the models. * If the `inputs_mask` is given, masks t
hanlp/components/distillation/losses.py:134
Functionhotpotqa_collate_fn
(samples)
hanlp/datasets/qa/hotpotqa.py:36
Methodindices
(self)
hanlp/components/parsers/parse_alg.py:86
Methodindices
(self)
hanlp/components/parsers/biaffine_tf/alg.py:166
Functioninitializer_1d
(input_tensor, initializer)
hanlp/components/ner/biaffine_ner/biaffine_ner_model.py:18
Methodinput_is_flat
(self, tokens)
hanlp/components/tokenizers/transformer.py:230
Methodinput_is_flat
(self, tokens)
hanlp/components/ner/transformer_ner.py:120
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/sdp.py:149
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/dep_2nd.py:106
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/pos.py:161
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/constituency.py:149
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/dep.py:149
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/amr.py:124
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/ud.py:131
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/lem.py:124
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/ner/biaffine_ner.py:100
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/ner/tag_ner.py:163
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/srl/bio_srl.py:122
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/srl/rank_srl.py:113
Methodinput_is_flat
(self, data)
hanlp/components/mtl/tasks/tok/tag_tok.py:140
Methodinput_is_single_sample
(self, input: Union[List[str], List[List[str]]])
hanlp/components/taggers/transformers/transformer_transform_tf.py:117
Methodinput_is_single_sample
(self, input: Any)
hanlp/components/classifiers/transformer_classifier_tf.py:106
Methodinput_is_single_sample
(self, input: Any)
hanlp/transform/conll_tf.py:100
Methodinput_is_single_sample
(self, input: Union[List[str], List[List[str]]])
hanlp/transform/txt_tf.py:182
Methodinput_is_single_sample
(self, input: Union[List[str], List[List[str]]])
hanlp/transform/tsv_tf.py:142
Methodinput_is_single_sample
(self, input: Any)
hanlp/transform/text_tf.py:87
Methodinput_shape
(self)
hanlp/components/taggers/cnn_tagger_tf.py:124
Methodinput_shape
(self)
hanlp/common/keras_component.py:220
Methodinput_truth_output_to_str
(self, input: List[str], truth: List[str], output: List[str])
hanlp/transform/tsv_tf.py:145
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/components/tokenizers/tok_tf.py:76
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/components/taggers/cnn_tagger_tf.py:33
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/components/taggers/ngram_conv/ngram_conv_tagger.py:26
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/components/taggers/transformers/transformer_transform_tf.py:67
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/components/classifiers/transformer_classifier_tf.py:24
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/conll_tf.py:342
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/conll_tf.py:711
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/txt_tf.py:185
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/tacred_tf.py:66
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/tsv_tf.py:107
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/table_tf.py:57
Methodinputs_to_samples
(self, inputs, gold=False)
hanlp/transform/text_tf.py:61
Methodinsert_transform
Insert a transform to a certain position. Args: index: A certain position. transform: A new transform. Retur
hanlp/common/dataset.py:64
Methodinstance
(self)
plugins/hanlp_common/hanlp_common/amr.py:225
Functioniob1_tags_to_spans
Given a sequence corresponding to IOB1 tags, extracts spans. Spans are inclusive and can be of zero length, representing a single word span.
hanlp/utils/span_util.py:388
Functioniob1_to_bioul
(tag_sequence: List[str])
hanlp/utils/span_util.py:559
Functioniobes_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:512
Functioniobes_to_bilou
(src, dst)
hanlp/utils/span_util.py:87
Methodis_attribute_edge
(label)
plugins/hanlp_common/hanlp_common/amr.py:729
Methodis_attribute_value
(value)
plugins/hanlp_common/hanlp_common/amr.py:726
Methodis_date_node
(self, node)
plugins/hanlp_common/hanlp_common/amr.py:382
Methodis_name_node
(self, node)
plugins/hanlp_common/hanlp_common/amr.py:348
Methodis_node
(cls, string: str)
hanlp/components/amr/seq2seq/dataset/linearization.py:98
Methodis_question
(self)
hanlp/datasets/qa/hotpotqa.py:134
Methodis_sp
(self)
hanlp/datasets/qa/hotpotqa.py:137
Methodis_word
(self)
hanlp/datasets/qa/hotpotqa.py:131
Methodk_fold
Perform k-fold sampling. Args: k (int): Number of folds. i (int): The i-th fold. Returns: Transf
hanlp/common/dataset.py:250
Functionkd_ce_loss
Calculate the cross entropy between logits_S and logits_T :param logits_S: Tensor of shape (batch_size, length, num_labels) or (batch_size,
hanlp/components/distillation/losses.py:26
Functionkd_mse_loss
Calculate the mse loss between logits_S and logits_T :param logits_S: Tensor of shape (batch_size, length, num_labels) or (batch_size, num_l
hanlp/components/distillation/losses.py:10
MethodkeyphraseExtraction
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:119
MethodkeyphraseExtraction
Keyphrase extraction aims to identify keywords or phrases reflecting the main topics of a document. @param text The text content of the document. Pre
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:419
Functionkmeans
See https://github.com/zysite/biaffine-parser/blob/master/parser/utils/alg.py#L7 Args: x(list): Lengths of sentences k(int): s
hanlp/components/parsers/biaffine_tf/alg.py:33
Methodlabel_vocab
(self)
hanlp/components/classifiers/transformer_classifier.py:166
Methodlabels
(self)
hanlp/components/classifiers/fasttext_classifier.py:90
Methodlabels
(self)
hanlp/components/classifiers/transformer_classifier_hf.py:124
MethodlanguageIdentification
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:169
MethodlanguageIdentification
Recognize the language of a given text. @param text The text content of the document. @return Identified language in <a href="https://en.wikipedia.or
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:542
Functionlargest_connected_component
(triples: List)
hanlp/datasets/parsing/amr.py:342
Methodlas
(self)
hanlp/metrics/parsing/labeled_f1.py:55
Methodlas
(self)
hanlp/metrics/parsing/attachmentscore.py:69
Methodlas
(self)
hanlp/metrics/parsing/labeled_score.py:50
Methodlas
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:55
Methodlast_transform
(self)
hanlp/components/tokenizers/multi_criteria_cws_transformer.py:41
Methodlcm
(self)
hanlp/metrics/parsing/span.py:78
← previousnext →2,401–2,500 of 2,968, ranked by callers