MCPcopy Create free account

hub / github.com/hankcs/HanLP / functions

Functions2,968 in github.com/hankcs/HanLP

Methodremove_node_ops
(self, node)
plugins/hanlp_common/hanlp_common/amr.py:455
Methodremove_span
(self, indexes)
plugins/hanlp_common/hanlp_common/amr.py:141
Functionremove_subcategory
(sample: dict)
hanlp/datasets/parsing/loaders/constituency_dataset.py:43
Methodreplace_node_attribute
(self, node, attr, old, new)
plugins/hanlp_common/hanlp_common/amr.py:431
Methodreset
(self)
hanlp/metrics/metric.py:43
Methodreset
(self)
hanlp/metrics/f1.py:59
Methodreset
(self)
hanlp/metrics/mtl.py:18
Methodreset
(self)
hanlp/metrics/spearman_correlation.py:81
Methodreset
(self)
hanlp/metrics/accuracy.py:118
Methodreset
(self)
hanlp/metrics/parsing/labeled_f1.py:96
Methodreset
(self)
hanlp/metrics/parsing/attachmentscore.py:72
Methodreset
(self)
hanlp/metrics/chunking/chunking_f1.py:101
Methodreset
(self)
hanlp/metrics/chunking/conlleval.py:65
Methodreset_dropout_mask
(self, batch_size, length)
hanlp/components/srl/span_rank/layer.py:77
Methodreset_state
(self)
hanlp/metrics/chunking/conlleval.py:48
Methodreset_states
(self)
hanlp/metrics/parsing/labeled_score.py:53
Methodreset_states
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:96
Methodreset_states
(self)
hanlp/metrics/chunking/iobes_tf.py:27
Methodresolved_nodes
(self)
hanlp/components/amr/seq2seq/dataset/linearization.py:52
Methodresolved_nodes_var
(self)
hanlp/components/amr/seq2seq/dataset/linearization.py:42
Functionrestore_backreferences_from_pointers
(nodes)
hanlp/components/amr/seq2seq/dataset/postprocessing.py:610
Functionrestore_backreferences_from_pointers
(nodes)
hanlp/components/amr/amrbart/common/postprocessing.py:488
Methodresult
(self)
hanlp/metrics/chunking/chunking_f1_tf.py:64
Functionreverse_edge_for_levi_bfs
(concept, edge)
hanlp/datasets/parsing/amr.py:362
Functionreverse_splits
(splits)
hanlp/datasets/parsing/loaders/_ctb_utils.py:210
Methodroot_rel_idx
(self)
hanlp/transform/conll_tf.py:284
Functionrun_perl
(script, src, dst=None)
hanlp/metrics/srl/srlconll.py:28
Methodrun_transformer
(self, input_ids, token_span)
hanlp/components/parsers/biaffine/biaffine_model.py:149
Methodsafe_pad_token
Get the pad token safely. It always returns a pad token, which is the token closest to pad if not presented in the vocab. Args:
hanlp/common/vocab_tf.py:231
Methodsafe_pad_token
Get the pad token safely. It always returns a pad token, which is the pad token or the first token if pad does not present in the vocab.
hanlp/common/vocab.py:324
Methodsafe_pad_token_idx
(self)
hanlp/common/vocab_tf.py:248
Methodsafe_pad_token_idx
Get the idx to the pad token safely. It always returns an index, which corresponds to the pad token or the first token if pad does not present
hanlp/common/vocab.py:335
Methodsafe_unk_token
Get the unk token safely. It always returns a unk token, which is the token closest to unk if not presented in the vocab. Args:
hanlp/common/vocab_tf.py:252
Methodsafe_unk_token
Get the unk token safely. It always returns a unk token, which is the unk token or the first token if unk does not presented in the vocab.
hanlp/common/vocab.py:342
Methodsame
(self, x, y)
hanlp/components/parsers/parse_alg.py:119
Methodsample_data
(self)
hanlp/components/taggers/rnn_tagger_tf.py:79
Methodsample_data
(self)
hanlp/components/parsers/biaffine_parser_tf.py:224
Methodsample_data
(self)
hanlp/components/parsers/biaffine_parser_tf.py:463
Methodsample_data
(self)
hanlp/common/keras_component.py:467
Functionsample_form_missing
(sample: dict)
hanlp/components/parsers/ud/util.py:27
Methodsamples_to_dataset
(self, samples: Generator, map_x=None, map_y=None, batch_size=5000, shuffle=None, repeat=None,
hanlp/transform/conll_tf.py:575
Methodsampling_weights
(self)
hanlp/components/mtl/multi_task_learning.py:81
Methodsave
(self, file)
hanlp/layers/embeddings/contextual_string_embedding.py:62
Methodsave_config
(self, save_dir, filename='config.json')
hanlp/components/ner/rnn_ner.py:65
Methodsave_vocab
(self, save_dir, filename=None)
hanlp/common/transform.py:56
Methodsave_vocab
(self, save_dir)
hanlp/common/transform.py:90
Methodsave_vocabs
(self, save_dir, filename='vocabs.json')
hanlp/components/mtl/multi_task_learning.py:761
Methodsave_vocabs
Save vocabularies to a directory. Args: save_dir: The directory to save vocabularies. filename: The name for vocabul
hanlp/common/transform.py:114
Functionsave_word2vec
(word2vec: dict, filepath, delimiter=' ')
hanlp/utils/torch_util.py:248
Methodscore
(self)
hanlp/metrics/metric.py:29
Methodscore
(self)
hanlp/metrics/f1.py:31
Methodscore
(self)
hanlp/metrics/f1.py:53
Methodscore
(self)
hanlp/metrics/mtl.py:11
Methodscore
(self)
hanlp/metrics/spearman_correlation.py:46
Methodscore
(self)
hanlp/metrics/accuracy.py:98
Methodscore
(self)
hanlp/metrics/amr/smatch_eval.py:19
Methodscore
(self)
hanlp/metrics/parsing/labeled_f1.py:47
Methodscore
(self)
hanlp/metrics/parsing/attachmentscore.py:61
Methodscore
(self)
hanlp/metrics/parsing/labeled_score.py:42
Methodscore
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:47
Methodscore
(self)
hanlp/metrics/parsing/span.py:70
Methodscore
(self)
hanlp/metrics/chunking/chunking_f1.py:59
Methodscore
(self)
hanlp/metrics/chunking/conlleval.py:69
MethodsemanticTextualSimilarity
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:76
MethodsemanticTextualSimilarity
Semantic textual similarity deals with determining how similar two pieces of texts are. @param textA The first text. @param textB The second text. @r
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:285
Methodsemantic_textual_similarity
Semantic textual similarity deals with determining how similar two pieces of texts are. Args: text: A pair or pairs of text.
plugins/hanlp_restful/hanlp_restful/__init__.py:203
MethodsentimentAnalysis
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:179
MethodsentimentAnalysis
Sentiment analysis is the task of classifying the polarity of a given text. For instance, a text-based tweet can be categorized into either "positive"
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:503
Methodsentiment_analysis
r""" Sentiment analysis is the task of classifying the polarity of a given text. For instance, a text-based tweet can be categorized i
plugins/hanlp_restful/hanlp_restful/__init__.py:524
MethodsetUp
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:17
MethodsetUp
(self)
plugins/hanlp_trie/tests/test_trie_dict.py:8
MethodsetUp
(self)
plugins/hanlp_restful/tests/test_client.py:8
Methodset_decoder
(self, decoder)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1724
Methodset_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:732
Methodset_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:904
Methodset_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1162
Methodset_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1715
Methodset_name_node_wiki
(self, node, wiki)
plugins/hanlp_common/hanlp_common/amr.py:370
Methodset_output_embeddings
(self, new_embeddings)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1309
Methodset_output_embeddings
(self, new_embeddings)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1721
Methodset_src_tokens
(self, sentence)
plugins/hanlp_common/hanlp_common/amr.py:494
Methodshould_load_file
(self, data)
hanlp/datasets/tokenization/loaders/multi_criteria_cws/mcws_dataset.py:25
Functionshow_colors_and_formats
()
hanlp/utils/log_util.py:159
Methodsizes
(self)
hanlp/components/mtl/multi_task_learning.py:89
Functionsplit_contractions
A function to split apostrophe contractions at the end of alphanumeric (and hyphenated) tokens. Takes the output of any of the tagger functi
hanlp/utils/lang/en/english_tokenizer.py:134
Functionsplit_example_for_eval
Split document-based samples into sentence-based samples for evaluation. Args: example: Returns:
hanlp/components/srl/span_rank/srl_eval_utils.py:14
Functionsplit_possessive_markers
A function to split possessive markers at the end of alphanumeric (and hyphenated) tokens. Takes the output of any of the tagger functions a
hanlp/utils/lang/en/english_tokenizer.py:102
Methodsrc_occurrence
(self, var: str)
hanlp/components/amr/seq2seq/dataset/linearization.py:55
Methodstate_size
(self)
hanlp/layers/crf/crf_tf.py:383
Methodstates
(self)
hanlp/metrics/chunking/chunking_f1.py:44
Methodstates
(self)
hanlp/metrics/chunking/conlleval.py:45
Methodstep
(self)
hanlp/components/distillation/schedulers.py:67
Methodstep
Whether the training procedure should perform an update. Args: gradient_accumulation: Number of batches per update. Ret
hanlp/common/structure.py:45
Functionstr_tensor_to_list
(pred)
hanlp/utils/tf_util.py:194
Methodstr_to_idx
(self, X, Y)
hanlp/common/transform_tf.py:241
Methodsummary
Log a summary of vocabs using a given logger. Args: logger: The logger to use.
hanlp/common/transform.py:206
Methodsummary
(self, verbose=True)
hanlp/common/vocab_tf.py:169
Functionsymbol_tokenizer
The symbol tagger extends the :func:`space_tokenizer` by separating alphanumerics. Separates alphanumeric Unicode character sequences in alr
hanlp/utils/lang/en/english_tokenizer.py:188
Methodtag_vocab
(self)
hanlp/components/taggers/rnn_tagger_tf.py:68
Methodtagging_scheme
(self)
hanlp/components/taggers/tagger.py:194
← previousnext →2,701–2,800 of 2,968, ranked by callers