Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/hankcs/HanLP
/ types & classes
Types & classes
423 in github.com/hankcs/HanLP
⨍
Functions
2,968
◇
Types & classes
423
↳
Endpoints
2
↓ 60 callers
Class
CountdownTimer
hanlp/utils/time_util.py:64
↓ 34 callers
Class
VocabTF
hanlp/common/vocab_tf.py:12
↓ 32 callers
Class
PadSequenceDataLoader
hanlp/common/dataset.py:354
↓ 27 callers
Class
Vocab
hanlp/common/vocab.py:12
↓ 25 callers
Class
SortingSamplerBuilder
hanlp/common/dataset.py:774
↓ 16 callers
Class
TransformList
Composes several transforms together. Args: transforms(list of ``Transform`` objects): list of transforms to compose. Example: Ret
hanlp/common/transform.py:306
↓ 16 callers
Class
VocabDict
hanlp/common/transform.py:99
↓ 13 callers
Class
SerializableDict
plugins/hanlp_common/hanlp_common/structure.py:82
↓ 11 callers
Class
Document
plugins/hanlp_common/hanlp_common/document.py:17
↓ 11 callers
Class
InvalidTagSequence
hanlp/utils/span_util.py:251
↓ 10 callers
Class
CoNLLSentence
plugins/hanlp_common/hanlp_common/conll.py:180
↓ 10 callers
Class
MLP
r""" Applies a linear transformation together with a non-linear activation to the incoming tensor: :math:`y = \mathrm{Activation}(x A^T + b)`
hanlp/components/parsers/biaffine/mlp.py:30
↓ 9 callers
Class
FieldLength
hanlp/common/transform.py:467
↓ 9 callers
Class
History
hanlp/common/structure.py:37
↓ 9 callers
Class
TimingFileIterator
hanlp/utils/io_util.py:639
↓ 9 callers
Class
TransformerSequenceTokenizer
hanlp/transform/transformer_tokenizer.py:82
↓ 8 callers
Class
DropoutLayer
hanlp/components/srl/span_rank/layer.py:90
↓ 8 callers
Class
F1
hanlp/metrics/f1.py:9
↓ 8 callers
Class
TrieDict
plugins/hanlp_trie/hanlp_trie/dictionary.py:53
↓ 7 callers
Class
Biaffine
r""" Biaffine layer for first-order scoring. This function has a tensor of weights :math:`W` and bias terms if needed. The score :math:`s
hanlp/components/parsers/biaffine/biaffine.py:28
↓ 7 callers
Class
BiaffineDecoder
hanlp/components/parsers/biaffine/biaffine_model.py:154
↓ 7 callers
Class
CoNLLUWord
plugins/hanlp_common/hanlp_common/conll.py:87
↓ 7 callers
Class
FieldToIndex
hanlp/common/transform.py:43
↓ 6 callers
Class
CRF
Conditional random field. This module implements a conditional random field [LMP01]_. The forward computation of this class computes the log
hanlp/layers/crf/crf.py:28
↓ 6 callers
Class
CategoricalAccuracy
Categorical Top-K accuracy. Assumes integer labels, with each item to be classified having a single correct class. Tie break enables equa
hanlp/metrics/accuracy.py:11
↓ 6 callers
Class
CoNLLWord
plugins/hanlp_common/hanlp_common/conll.py:10
↓ 6 callers
Class
TransformerTokenizerTF
hanlp/components/tokenizers/tok_tf.py:88
↓ 5 callers
Class
BiaffineSemanticDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:351
↓ 5 callers
Class
MetricDict
hanlp/metrics/mtl.py:7
↓ 5 callers
Class
NgramConvTokenizerTF
hanlp/components/tokenizers/tok_tf.py:49
↓ 5 callers
Class
SortingSampler
hanlp/common/dataset.py:684
↓ 5 callers
Class
TransformerNamedEntityRecognizerTF
hanlp/components/ner/ner_tf.py:73
↓ 4 callers
Class
BiaffineTransformerDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:390
↓ 4 callers
Class
EvalCounts
hanlp/metrics/chunking/conlleval.py:31
↓ 4 callers
Class
MLP
hanlp/components/parsers/biaffine_tf/layers.py:50
↓ 4 callers
Class
TableDataset
hanlp/common/dataset.py:818
↓ 4 callers
Class
TimeDistributed
Given an input shaped like `(batch_size, time_steps, [rest])` and a `Module` that takes inputs like `(batch_size, [rest])`, `TimeDistributed`
hanlp/layers/time_distributed.py:13
↓ 4 callers
Class
TransformerTextTokenizer
hanlp/transform/transformer_tokenizer.py:41
↓ 4 callers
Class
Trie
plugins/hanlp_trie/hanlp_trie/trie.py:49
↓ 3 callers
Class
AMRDataset
hanlp/components/amr/seq2seq/dataset/dataset.py:17
↓ 3 callers
Class
AMRGraph
hanlp/components/amr/seq2seq/dataset/penman.py:83
↓ 3 callers
Class
AMRNode
plugins/hanlp_common/hanlp_common/amr.py:173
↓ 3 callers
Class
BartAttention
Multi-headed attention from 'Attention Is All You Need' paper
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:140
↓ 3 callers
Class
BartModel
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1146
↓ 3 callers
Class
ContextualWordEmbedding
hanlp/layers/embeddings/contextual_word_embedding.py:78
↓ 3 callers
Class
F1_
hanlp/metrics/f1.py:45
↓ 3 callers
Class
IndependentDropout
hanlp/layers/dropout.py:99
↓ 3 callers
Class
MultiTaskLearning
hanlp/components/mtl/multi_task_learning.py:93
↓ 3 callers
Class
PunctuationMask
hanlp/common/transform.py:524
↓ 3 callers
Class
SemanticGraph
hanlp/components/amr/seq2seq/dataset/linearization.py:12
↓ 3 callers
Class
SharedDropout
hanlp/components/parsers/biaffine_tf/layers.py:65
↓ 3 callers
Class
SharedDropout
hanlp/layers/dropout.py:66
↓ 3 callers
Class
TagDecoder
A basic sequence tagger that decodes from inputs of word embeddings
hanlp/components/parsers/ud/tag_decoder.py:40
↓ 3 callers
Class
TaggingTokenization
hanlp/components/mtl/tasks/tok/tag_tok.py:36
↓ 3 callers
Class
ToChar
hanlp/common/transform.py:373
↓ 3 callers
Class
TransformerEncoder
hanlp/layers/transformers/encoder.py:18
↓ 3 callers
Class
Vertex
hanlp/datasets/qa/hotpotqa.py:109
↓ 3 callers
Class
WordDropout
hanlp/layers/dropout.py:9
↓ 2 callers
Class
AMRLinearizer
hanlp/components/amr/seq2seq/dataset/linearization.py:132
↓ 2 callers
Class
AdamWeightDecay
Adam enables L2 weight decay and clip_by_global_norm on gradients. Just adding the square of the weights to the loss function is *not* the
hanlp/optimizers/adamw/optimization.py:104
↓ 2 callers
Class
AttachmentScore
hanlp/metrics/parsing/attachmentscore.py:26
↓ 2 callers
Class
BartDecoder
Transformer decoder consisting of *config.decoder_layers* layers. Each layer is a [`BartDecoderLayer`] Args: config: BartConfig
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:868
↓ 2 callers
Class
BartLearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size.
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:120
↓ 2 callers
Class
Biaffine
hanlp/components/parsers/biaffine_tf/layers.py:9
↓ 2 callers
Class
Biaffine
hanlp/components/srl/span_rank/layer.py:133
↓ 2 callers
Class
BiaffineDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:27
↓ 2 callers
Class
BiaffineDependencyParsing
hanlp/components/mtl/tasks/dep.py:26
↓ 2 callers
Class
BiaffineJointDecoder
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:44
↓ 2 callers
Class
BiaffineModelTF
hanlp/components/parsers/biaffine_tf/model.py:9
↓ 2 callers
Class
BiaffineNamedEntityRecognitionDecoder
hanlp/components/ner/biaffine_ner/biaffine_ner_model.py:60
↓ 2 callers
Class
BiaffineSemanticDependencyParsing
hanlp/components/mtl/tasks/sdp.py:24
↓ 2 callers
Class
BiaffineSeparateDecoder
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:25
↓ 2 callers
Class
BiaffineTaggingDecoder
hanlp/components/srl/span_bio/baffine_tagging.py:14
↓ 2 callers
Class
CRF
Conditional Random Field layer (tf.keras) `CRF` can be used as the last layer in a network (as a classifier). Input shape (features) must be e
hanlp/layers/crf/crf_layer_tf.py:21
↓ 2 callers
Class
CRFConstituencyDecoder
r""" The implementation of CRF Constituency Parser, also called FANCY (abbr. of Fast and Accurate Neural Crf constituencY) Parser. Refere
hanlp/components/parsers/constituency/crf_constituency_model.py:32
↓ 2 callers
Class
CRFConstituencyParsing
hanlp/components/mtl/tasks/constituency.py:27
↓ 2 callers
Class
CRFLoss
hanlp/layers/crf/crf_layer_tf.py:131
↓ 2 callers
Class
CoNLLParsingDataset
hanlp/datasets/parsing/loaders/conll_dataset.py:12
↓ 2 callers
Class
CoNLL_Transformer_Transform
hanlp/transform/conll_tf.py:306
↓ 2 callers
Class
ColoredFormatter
hanlp/utils/log_util.py:16
↓ 2 callers
Class
ContextualStringEmbeddingModule
hanlp/layers/embeddings/contextual_string_embedding.py:73
↓ 2 callers
Class
ContextualStringEmbeddingTransform
hanlp/layers/embeddings/contextual_string_embedding.py:135
↓ 2 callers
Class
DocumentState
hanlp/datasets/srl/ontonotes5/_utils.py:32
↓ 2 callers
Class
EncoderWithContextualLayer
hanlp/components/parsers/biaffine/biaffine_model.py:18
↓ 2 callers
Class
HanLPClient
plugins/hanlp_restful/hanlp_restful/__init__.py:37
↓ 2 callers
Class
HighwayLSTMCell
hanlp/components/srl/span_rank/layer.py:182
↓ 2 callers
Class
HumanTimeDelta
hanlp/utils/time_util.py:48
↓ 2 callers
Class
NormalizeCharacter
hanlp/common/transform.py:549
↓ 2 callers
Class
NormalizeToken
hanlp/common/transform.py:495
↓ 2 callers
Class
PrefetchDataLoader
hanlp/common/dataset.py:552
↓ 2 callers
Class
RNNNamedEntityRecognizerTF
hanlp/components/ner/ner_tf.py:35
↓ 2 callers
Class
RNNPartOfSpeechTaggerTF
hanlp/components/taggers/pos_tf.py:12
↓ 2 callers
Class
RNNTokenizerTF
hanlp/components/tokenizers/tok_tf.py:99
↓ 2 callers
Class
RelativeTransformerEncoder
hanlp/layers/transformers/relative_transformer.py:314
↓ 2 callers
Class
ScalarMixWithDropout
Computes a parameterised scalar mixture of N tensors, ``mixture = gamma * sum(s_k * tensor_k)`` where ``s = softmax(w)``, with ``w`` and ``gamma``
hanlp/layers/scalar_mix.py:35
↓ 2 callers
Class
SmatchScores
hanlp/metrics/amr/smatch_eval.py:17
↓ 2 callers
Class
SpanBIOSemanticRoleLabeling
hanlp/components/mtl/tasks/srl/bio_srl.py:22
↓ 2 callers
Class
SpanF1
hanlp/metrics/chunking/conlleval.py:58
↓ 2 callers
Class
SpanRankingSRLDecoder
hanlp/components/srl/span_rank/span_ranking_srl_model.py:27
↓ 2 callers
Class
SparseCategoricalCrossentropyOverBatchFirstDim
hanlp/losses/sparse_categorical_crossentropy.py:30
next →
1–100 of 423, ranked by callers