Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hankcs/HanLP
/ functions
Functions
2,968 in github.com/hankcs/HanLP
⨍
Functions
2,968
◇
Types & classes
423
↳
Endpoints
2
Method
remove_node_ops
(self, node)
plugins/hanlp_common/hanlp_common/amr.py:455
Method
remove_span
(self, indexes)
plugins/hanlp_common/hanlp_common/amr.py:141
Function
remove_subcategory
(sample: dict)
hanlp/datasets/parsing/loaders/constituency_dataset.py:43
Method
replace_node_attribute
(self, node, attr, old, new)
plugins/hanlp_common/hanlp_common/amr.py:431
Method
reset
(self)
hanlp/metrics/metric.py:43
Method
reset
(self)
hanlp/metrics/f1.py:59
Method
reset
(self)
hanlp/metrics/mtl.py:18
Method
reset
(self)
hanlp/metrics/spearman_correlation.py:81
Method
reset
(self)
hanlp/metrics/accuracy.py:118
Method
reset
(self)
hanlp/metrics/parsing/labeled_f1.py:96
Method
reset
(self)
hanlp/metrics/parsing/attachmentscore.py:72
Method
reset
(self)
hanlp/metrics/chunking/chunking_f1.py:101
Method
reset
(self)
hanlp/metrics/chunking/conlleval.py:65
Method
reset_dropout_mask
(self, batch_size, length)
hanlp/components/srl/span_rank/layer.py:77
Method
reset_state
(self)
hanlp/metrics/chunking/conlleval.py:48
Method
reset_states
(self)
hanlp/metrics/parsing/labeled_score.py:53
Method
reset_states
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:96
Method
reset_states
(self)
hanlp/metrics/chunking/iobes_tf.py:27
Method
resolved_nodes
(self)
hanlp/components/amr/seq2seq/dataset/linearization.py:52
Method
resolved_nodes_var
(self)
hanlp/components/amr/seq2seq/dataset/linearization.py:42
Function
restore_backreferences_from_pointers
(nodes)
hanlp/components/amr/seq2seq/dataset/postprocessing.py:610
Function
restore_backreferences_from_pointers
(nodes)
hanlp/components/amr/amrbart/common/postprocessing.py:488
Method
result
(self)
hanlp/metrics/chunking/chunking_f1_tf.py:64
Function
reverse_edge_for_levi_bfs
(concept, edge)
hanlp/datasets/parsing/amr.py:362
Function
reverse_splits
(splits)
hanlp/datasets/parsing/loaders/_ctb_utils.py:210
Method
root_rel_idx
(self)
hanlp/transform/conll_tf.py:284
Function
run_perl
(script, src, dst=None)
hanlp/metrics/srl/srlconll.py:28
Method
run_transformer
(self, input_ids, token_span)
hanlp/components/parsers/biaffine/biaffine_model.py:149
Method
safe_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
Method
safe_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
Method
safe_pad_token_idx
(self)
hanlp/common/vocab_tf.py:248
Method
safe_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
Method
safe_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
Method
safe_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
Method
same
(self, x, y)
hanlp/components/parsers/parse_alg.py:119
Method
sample_data
(self)
hanlp/components/taggers/rnn_tagger_tf.py:79
Method
sample_data
(self)
hanlp/components/parsers/biaffine_parser_tf.py:224
Method
sample_data
(self)
hanlp/components/parsers/biaffine_parser_tf.py:463
Method
sample_data
(self)
hanlp/common/keras_component.py:467
Function
sample_form_missing
(sample: dict)
hanlp/components/parsers/ud/util.py:27
Method
samples_to_dataset
(self, samples: Generator, map_x=None, map_y=None, batch_size=5000, shuffle=None, repeat=None,
hanlp/transform/conll_tf.py:575
Method
sampling_weights
(self)
hanlp/components/mtl/multi_task_learning.py:81
Method
save
(self, file)
hanlp/layers/embeddings/contextual_string_embedding.py:62
Method
save_config
(self, save_dir, filename='config.json')
hanlp/components/ner/rnn_ner.py:65
Method
save_vocab
(self, save_dir, filename=None)
hanlp/common/transform.py:56
Method
save_vocab
(self, save_dir)
hanlp/common/transform.py:90
Method
save_vocabs
(self, save_dir, filename='vocabs.json')
hanlp/components/mtl/multi_task_learning.py:761
Method
save_vocabs
Save vocabularies to a directory. Args: save_dir: The directory to save vocabularies. filename: The name for vocabul
hanlp/common/transform.py:114
Function
save_word2vec
(word2vec: dict, filepath, delimiter=' ')
hanlp/utils/torch_util.py:248
Method
score
(self)
hanlp/metrics/metric.py:29
Method
score
(self)
hanlp/metrics/f1.py:31
Method
score
(self)
hanlp/metrics/f1.py:53
Method
score
(self)
hanlp/metrics/mtl.py:11
Method
score
(self)
hanlp/metrics/spearman_correlation.py:46
Method
score
(self)
hanlp/metrics/accuracy.py:98
Method
score
(self)
hanlp/metrics/amr/smatch_eval.py:19
Method
score
(self)
hanlp/metrics/parsing/labeled_f1.py:47
Method
score
(self)
hanlp/metrics/parsing/attachmentscore.py:61
Method
score
(self)
hanlp/metrics/parsing/labeled_score.py:42
Method
score
(self)
hanlp/metrics/parsing/labeled_f1_tf.py:47
Method
score
(self)
hanlp/metrics/parsing/span.py:70
Method
score
(self)
hanlp/metrics/chunking/chunking_f1.py:59
Method
score
(self)
hanlp/metrics/chunking/conlleval.py:69
Method
semanticTextualSimilarity
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:76
Method
semanticTextualSimilarity
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
Method
semantic_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
Method
sentimentAnalysis
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:179
Method
sentimentAnalysis
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
Method
sentiment_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
Method
setUp
()
plugins/hanlp_restful_java/src/test/java/com/hankcs/hanlp/restful/HanLPClientTest.java:17
Method
setUp
(self)
plugins/hanlp_trie/tests/test_trie_dict.py:8
Method
setUp
(self)
plugins/hanlp_restful/tests/test_client.py:8
Method
set_decoder
(self, decoder)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1724
Method
set_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:732
Method
set_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:904
Method
set_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1162
Method
set_input_embeddings
(self, value)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1715
Method
set_name_node_wiki
(self, node, wiki)
plugins/hanlp_common/hanlp_common/amr.py:370
Method
set_output_embeddings
(self, new_embeddings)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1309
Method
set_output_embeddings
(self, new_embeddings)
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1721
Method
set_src_tokens
(self, sentence)
plugins/hanlp_common/hanlp_common/amr.py:494
Method
should_load_file
(self, data)
hanlp/datasets/tokenization/loaders/multi_criteria_cws/mcws_dataset.py:25
Function
show_colors_and_formats
()
hanlp/utils/log_util.py:159
Method
sizes
(self)
hanlp/components/mtl/multi_task_learning.py:89
Function
split_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
Function
split_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
Function
split_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
Method
src_occurrence
(self, var: str)
hanlp/components/amr/seq2seq/dataset/linearization.py:55
Method
state_size
(self)
hanlp/layers/crf/crf_tf.py:383
Method
states
(self)
hanlp/metrics/chunking/chunking_f1.py:44
Method
states
(self)
hanlp/metrics/chunking/conlleval.py:45
Method
step
(self)
hanlp/components/distillation/schedulers.py:67
Method
step
Whether the training procedure should perform an update. Args: gradient_accumulation: Number of batches per update. Ret
hanlp/common/structure.py:45
Function
str_tensor_to_list
(pred)
hanlp/utils/tf_util.py:194
Method
str_to_idx
(self, X, Y)
hanlp/common/transform_tf.py:241
Method
summary
Log a summary of vocabs using a given logger. Args: logger: The logger to use.
hanlp/common/transform.py:206
Method
summary
(self, verbose=True)
hanlp/common/vocab_tf.py:169
Function
symbol_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
Method
tag_vocab
(self)
hanlp/components/taggers/rnn_tagger_tf.py:68
Method
tagging_scheme
(self)
hanlp/components/taggers/tagger.py:194
← previous
next →
2,701–2,800 of 2,968, ranked by callers