MCPcopy Index your code

hub / github.com/hankcs/HanLP / types & classes

Types & classes423 in github.com/hankcs/HanLP

↓ 60 callersClassCountdownTimer
hanlp/utils/time_util.py:64
↓ 34 callersClassVocabTF
hanlp/common/vocab_tf.py:12
↓ 32 callersClassPadSequenceDataLoader
hanlp/common/dataset.py:354
↓ 27 callersClassVocab
hanlp/common/vocab.py:12
↓ 25 callersClassSortingSamplerBuilder
hanlp/common/dataset.py:774
↓ 16 callersClassTransformList
Composes several transforms together. Args: transforms(list of ``Transform`` objects): list of transforms to compose. Example: Ret
hanlp/common/transform.py:306
↓ 16 callersClassVocabDict
hanlp/common/transform.py:99
↓ 13 callersClassSerializableDict
plugins/hanlp_common/hanlp_common/structure.py:82
↓ 11 callersClassDocument
plugins/hanlp_common/hanlp_common/document.py:17
↓ 11 callersClassInvalidTagSequence
hanlp/utils/span_util.py:251
↓ 10 callersClassCoNLLSentence
plugins/hanlp_common/hanlp_common/conll.py:180
↓ 10 callersClassMLP
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 callersClassFieldLength
hanlp/common/transform.py:467
↓ 9 callersClassHistory
hanlp/common/structure.py:37
↓ 9 callersClassTimingFileIterator
hanlp/utils/io_util.py:639
↓ 9 callersClassTransformerSequenceTokenizer
hanlp/transform/transformer_tokenizer.py:82
↓ 8 callersClassDropoutLayer
hanlp/components/srl/span_rank/layer.py:90
↓ 8 callersClassF1
hanlp/metrics/f1.py:9
↓ 8 callersClassTrieDict
plugins/hanlp_trie/hanlp_trie/dictionary.py:53
↓ 7 callersClassBiaffine
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 callersClassBiaffineDecoder
hanlp/components/parsers/biaffine/biaffine_model.py:154
↓ 7 callersClassCoNLLUWord
plugins/hanlp_common/hanlp_common/conll.py:87
↓ 7 callersClassFieldToIndex
hanlp/common/transform.py:43
↓ 6 callersClassCRF
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 callersClassCategoricalAccuracy
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 callersClassCoNLLWord
plugins/hanlp_common/hanlp_common/conll.py:10
↓ 6 callersClassTransformerTokenizerTF
hanlp/components/tokenizers/tok_tf.py:88
↓ 5 callersClassBiaffineSemanticDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:351
↓ 5 callersClassMetricDict
hanlp/metrics/mtl.py:7
↓ 5 callersClassNgramConvTokenizerTF
hanlp/components/tokenizers/tok_tf.py:49
↓ 5 callersClassSortingSampler
hanlp/common/dataset.py:684
↓ 5 callersClassTransformerNamedEntityRecognizerTF
hanlp/components/ner/ner_tf.py:73
↓ 4 callersClassBiaffineTransformerDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:390
↓ 4 callersClassEvalCounts
hanlp/metrics/chunking/conlleval.py:31
↓ 4 callersClassMLP
hanlp/components/parsers/biaffine_tf/layers.py:50
↓ 4 callersClassTableDataset
hanlp/common/dataset.py:818
↓ 4 callersClassTimeDistributed
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 callersClassTransformerTextTokenizer
hanlp/transform/transformer_tokenizer.py:41
↓ 4 callersClassTrie
plugins/hanlp_trie/hanlp_trie/trie.py:49
↓ 3 callersClassAMRDataset
hanlp/components/amr/seq2seq/dataset/dataset.py:17
↓ 3 callersClassAMRGraph
hanlp/components/amr/seq2seq/dataset/penman.py:83
↓ 3 callersClassAMRNode
plugins/hanlp_common/hanlp_common/amr.py:173
↓ 3 callersClassBartAttention
Multi-headed attention from 'Attention Is All You Need' paper
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:140
↓ 3 callersClassBartModel
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:1146
↓ 3 callersClassContextualWordEmbedding
hanlp/layers/embeddings/contextual_word_embedding.py:78
↓ 3 callersClassF1_
hanlp/metrics/f1.py:45
↓ 3 callersClassIndependentDropout
hanlp/layers/dropout.py:99
↓ 3 callersClassMultiTaskLearning
hanlp/components/mtl/multi_task_learning.py:93
↓ 3 callersClassPunctuationMask
hanlp/common/transform.py:524
↓ 3 callersClassSemanticGraph
hanlp/components/amr/seq2seq/dataset/linearization.py:12
↓ 3 callersClassSharedDropout
hanlp/components/parsers/biaffine_tf/layers.py:65
↓ 3 callersClassSharedDropout
hanlp/layers/dropout.py:66
↓ 3 callersClassTagDecoder
A basic sequence tagger that decodes from inputs of word embeddings
hanlp/components/parsers/ud/tag_decoder.py:40
↓ 3 callersClassTaggingTokenization
hanlp/components/mtl/tasks/tok/tag_tok.py:36
↓ 3 callersClassToChar
hanlp/common/transform.py:373
↓ 3 callersClassTransformerEncoder
hanlp/layers/transformers/encoder.py:18
↓ 3 callersClassVertex
hanlp/datasets/qa/hotpotqa.py:109
↓ 3 callersClassWordDropout
hanlp/layers/dropout.py:9
↓ 2 callersClassAMRLinearizer
hanlp/components/amr/seq2seq/dataset/linearization.py:132
↓ 2 callersClassAdamWeightDecay
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 callersClassAttachmentScore
hanlp/metrics/parsing/attachmentscore.py:26
↓ 2 callersClassBartDecoder
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 callersClassBartLearnedPositionalEmbedding
This module learns positional embeddings up to a fixed maximum size.
hanlp/components/amr/amrbart/model_interface/modeling_bart.py:120
↓ 2 callersClassBiaffine
hanlp/components/parsers/biaffine_tf/layers.py:9
↓ 2 callersClassBiaffine
hanlp/components/srl/span_rank/layer.py:133
↓ 2 callersClassBiaffineDependencyParserTF
hanlp/components/parsers/biaffine_parser_tf.py:27
↓ 2 callersClassBiaffineDependencyParsing
hanlp/components/mtl/tasks/dep.py:26
↓ 2 callersClassBiaffineJointDecoder
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:44
↓ 2 callersClassBiaffineModelTF
hanlp/components/parsers/biaffine_tf/model.py:9
↓ 2 callersClassBiaffineNamedEntityRecognitionDecoder
hanlp/components/ner/biaffine_ner/biaffine_ner_model.py:60
↓ 2 callersClassBiaffineSemanticDependencyParsing
hanlp/components/mtl/tasks/sdp.py:24
↓ 2 callersClassBiaffineSeparateDecoder
hanlp/components/parsers/biaffine/biaffine_2nd_dep.py:25
↓ 2 callersClassBiaffineTaggingDecoder
hanlp/components/srl/span_bio/baffine_tagging.py:14
↓ 2 callersClassCRF
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 callersClassCRFConstituencyDecoder
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 callersClassCRFConstituencyParsing
hanlp/components/mtl/tasks/constituency.py:27
↓ 2 callersClassCRFLoss
hanlp/layers/crf/crf_layer_tf.py:131
↓ 2 callersClassCoNLLParsingDataset
hanlp/datasets/parsing/loaders/conll_dataset.py:12
↓ 2 callersClassCoNLL_Transformer_Transform
hanlp/transform/conll_tf.py:306
↓ 2 callersClassColoredFormatter
hanlp/utils/log_util.py:16
↓ 2 callersClassContextualStringEmbeddingModule
hanlp/layers/embeddings/contextual_string_embedding.py:73
↓ 2 callersClassContextualStringEmbeddingTransform
hanlp/layers/embeddings/contextual_string_embedding.py:135
↓ 2 callersClassDocumentState
hanlp/datasets/srl/ontonotes5/_utils.py:32
↓ 2 callersClassEncoderWithContextualLayer
hanlp/components/parsers/biaffine/biaffine_model.py:18
↓ 2 callersClassHanLPClient
plugins/hanlp_restful/hanlp_restful/__init__.py:37
↓ 2 callersClassHighwayLSTMCell
hanlp/components/srl/span_rank/layer.py:182
↓ 2 callersClassHumanTimeDelta
hanlp/utils/time_util.py:48
↓ 2 callersClassNormalizeCharacter
hanlp/common/transform.py:549
↓ 2 callersClassNormalizeToken
hanlp/common/transform.py:495
↓ 2 callersClassPrefetchDataLoader
hanlp/common/dataset.py:552
↓ 2 callersClassRNNNamedEntityRecognizerTF
hanlp/components/ner/ner_tf.py:35
↓ 2 callersClassRNNPartOfSpeechTaggerTF
hanlp/components/taggers/pos_tf.py:12
↓ 2 callersClassRNNTokenizerTF
hanlp/components/tokenizers/tok_tf.py:99
↓ 2 callersClassRelativeTransformerEncoder
hanlp/layers/transformers/relative_transformer.py:314
↓ 2 callersClassScalarMixWithDropout
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 callersClassSmatchScores
hanlp/metrics/amr/smatch_eval.py:17
↓ 2 callersClassSpanBIOSemanticRoleLabeling
hanlp/components/mtl/tasks/srl/bio_srl.py:22
↓ 2 callersClassSpanF1
hanlp/metrics/chunking/conlleval.py:58
↓ 2 callersClassSpanRankingSRLDecoder
hanlp/components/srl/span_rank/span_ranking_srl_model.py:27
↓ 2 callersClassSparseCategoricalCrossentropyOverBatchFirstDim
hanlp/losses/sparse_categorical_crossentropy.py:30
next →1–100 of 423, ranked by callers