MCPcopy Create free account

hub / github.com/hankcs/HanLP / functions

Functions2,968 in github.com/hankcs/HanLP

↓ 1 callersMethodto_dict
Convert to a json compatible dict. Returns: A dict representation.
plugins/hanlp_common/hanlp_common/document.py:104
↓ 1 callersMethodto_functional
(self)
hanlp/components/parsers/biaffine_tf/model.py:146
↓ 1 callersMethodto_list
(self)
hanlp/layers/embeddings/embedding.py:122
↓ 1 callersMethodto_markdown
r"""Convert into markdown string. Args: headings: ``auto`` to automatically detect the word type. When passed a list of string, t
plugins/hanlp_common/hanlp_common/conll.py:273
↓ 1 callersMethodto_tree
Convert into a pretty tree string which can be printed to show the tree structure. Args: extras: Extra table to be aligned to thi
plugins/hanlp_common/hanlp_common/conll.py:298
↓ 1 callersMethodtoken_dropout
During training, randomly replaces some of the non-padding tokens to a mask token with probability ``p`` Adopted from https://github.
hanlp/layers/dropout.py:19
↓ 1 callersFunctiontoken_processing
(tok)
hanlp/components/amr/amrbart/common/postprocessing.py:39
↓ 1 callersMethodtokenize
Implement this method to tokenize a piece of text into a list of non-intersect spans, each span is a tuple of ``(begin_offset, end_offset, lab
plugins/hanlp_trie/hanlp_trie/dictionary.py:14
↓ 1 callersFunctiontokenize_english
A modified version of the segtok tagger: https://github.com/fnl/segtok This tagger extends the alphanumeric :func:`symbol_tokenizer` by split
hanlp/utils/lang/en/english_tokenizer.py:223
↓ 1 callersFunctiontopological_sort
(graph, start)
plugins/hanlp_common/hanlp_common/util.py:223
↓ 1 callersMethodtrain_batch
(self, words, feats, arcs, rels, mask, optimizer, arc_loss, rel_loss)
hanlp/components/parsers/biaffine_parser_tf.py:179
↓ 1 callersMethodtrain_loop
(self, trn_data, dev_data, epochs, num_examples, train_steps_per_epoch, dev_steps, model, optimizer,
hanlp/common/keras_component.py:369
↓ 1 callersMethodtransform
(self, **kwargs)
hanlp/layers/embeddings/fast_text.py:103
↓ 1 callersMethodtransform
Build a transform function for this embedding. Args: **kwargs: Containing vocabs, training etc. Not finalized for now. R
hanlp/layers/embeddings/embedding.py:34
↓ 1 callersMethodtransform_batch
Let the task transform the batch before feeding the batch into its decoder. The default behavior is to adjust the head and tail of to
hanlp/components/mtl/tasks/__init__.py:198
↓ 1 callersFunctiontree_to_list
(T)
plugins/hanlp_common/hanlp_common/visualization.py:170
↓ 1 callersFunctionuniq
(iterable)
hanlp/metrics/chunking/conlleval.py:217
↓ 1 callersMethodunlock
(self)
hanlp/common/vocab_tf.py:135
↓ 1 callersMethodupdate
(self, pred_tags, gold_tags)
hanlp/metrics/chunking/binary_chunking_f1.py:18
↓ 1 callersMethodupdate_entities
(self, true_entities, pred_entities)
hanlp/metrics/chunking/bmes_tf.py:24
↓ 1 callersMethodupdate_tags
(self, true_tags, pred_tags)
hanlp/metrics/chunking/chunking_f1_tf.py:60
↓ 1 callersFunctionview
(t: tf.Tensor, *dims)
hanlp/components/parsers/alg_tf.py:15
↓ 1 callersFunctionview
(t: tf.Tensor, *dims)
hanlp/components/parsers/biaffine_tf/alg.py:15
↓ 1 callersMethodvocab
(self)
hanlp/datasets/lm/loaders/lm_dataset.py:59
↓ 1 callersFunctionwords_to_bi
(words)
hanlp/utils/span_util.py:29
↓ 1 callersFunctionwords_to_bmes
(words)
hanlp/utils/span_util.py:17
↓ 1 callersMethodwrite_prediction
(self, prediction, batch, output: TextIO)
hanlp/components/taggers/tagger.py:140
↓ 1 callersMethodx_to_idx
(self, x)
hanlp/transform/text_tf.py:73
MethodBaseInput
(String[] tasks, String[] skipTasks, String language)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/BaseInput.java:22
MethodCoreferenceResolutionOutput
(List<Set<Span>> clusters, ArrayList<String> tokens)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/CoreferenceResolutionOutput.java:27
MethodDocumentInput
(String text, String[] tasks, String[] skipTasks, String language)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/DocumentInput.java:20
MethodHanLPClient
@param url An API endpoint to a service provider. @param auth An auth key licenced by a service provider. @param language The language this c
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/HanLPClient.java:48
MethodSCCs
(self)
hanlp/components/parsers/parse_alg.py:90
MethodSCCs
(self)
hanlp/components/parsers/alg_tf.py:170
MethodSCCs
(self)
hanlp/components/parsers/biaffine_tf/alg.py:170
MethodSentenceInput
(String[] text, String[] tasks, String[] skipTasks, String language)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/SentenceInput.java:20
MethodSpan
(String form, int begin, int end)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/Span.java:35
MethodTokenInput
(String[][] tokens, String[] tasks, String[] skipTasks, String language)
plugins/hanlp_restful_java/src/main/java/com/hankcs/hanlp/restful/TokenInput.java:20
MethodXY_to_inputs_outputs
(self, X: Union[tf.Tensor, Tuple[tf.Tensor]], Y: Union[tf.Tensor, Tuple[tf.Tensor]],
hanlp/transform/conll_tf.py:232
MethodXY_to_inputs_outputs
(self, X: Union[tf.Tensor, Tuple[tf.Tensor]], Y: Union[tf.Tensor, Tuple[tf.Tensor]],
hanlp/transform/conll_tf.py:798
MethodX_to_inputs
(self, X: Union[tf.Tensor, Tuple[tf.Tensor]])
hanlp/components/taggers/ngram_conv/ngram_conv_tagger.py:76
MethodX_to_inputs
(self, X: Union[tf.Tensor, Tuple[tf.Tensor]])
hanlp/transform/conll_tf.py:382
MethodX_to_inputs
(self, X: Union[tf.Tensor, Tuple[tf.Tensor]])
hanlp/transform/tsv_tf.py:125
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, X=None, inputs=None, batch=None,
hanlp/components/taggers/transformers/transformer_transform_tf.py:120
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None, batch=None
hanlp/components/ner/ner_tf.py:29
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None, batch=None
hanlp/components/classifiers/transformer_classifier_tf.py:96
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None)
hanlp/transform/conll_tf.py:602
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None, batch=None
hanlp/transform/txt_tf.py:192
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, X=None, **kwargs)
hanlp/transform/tsv_tf.py:132
MethodY_to_outputs
(self, Y: Union[tf.Tensor, Tuple[tf.Tensor]], gold=False, inputs=None, **kwargs)
hanlp/transform/text_tf.py:79
Method__bool__
(self)
plugins/hanlp_trie/hanlp_trie/trie.py:163
Method__call__
Run the pipeline as a function. Args: doc: A :class:`~hanlp_common.document.Document` or other data types. **kwargs:
hanlp/components/pipeline.py:132
Method__call__
(self, data, batch_size=None, **kwargs)
hanlp/components/parsers/ud/ud_parser.py:345
Method__call__
(self, tokens: torch.LongTensor, prefix_mask: torch.LongTensor)
hanlp/components/parsers/biaffine/structual_attention.py:103
Method__call__
(self, logits_S, logits_T)
hanlp/components/distillation/schedulers.py:80
Method__call__
(self, *args, **kwargs)
hanlp/components/distillation/losses.py:284
Method__call__
(self, data, **kwargs)
hanlp/components/mtl/multi_task_learning.py:772
Method__call__
(self, pred, gold, mask=None)
hanlp/metrics/metric.py:33
Method__call__
(self, pred: set, gold: set)
hanlp/metrics/f1.py:39
Method__call__
(self, pred, gold)
hanlp/metrics/f1.py:56
Method__call__
(self, pred, gold)
hanlp/metrics/mtl.py:14
Method__call__
# Parameters predictions : `torch.Tensor`, required. A tensor of predictions of shape (batch_size, ...). gold_la
hanlp/metrics/spearman_correlation.py:54
Method__call__
# Parameters predictions : `torch.Tensor`, required. A tensor of predictions of shape (batch_size, ..., num_classes).
hanlp/metrics/accuracy.py:32
Method__call__
# Parameters predictions : `torch.Tensor`, required. A tensor of predictions of shape (batch_size, ...). gold_la
hanlp/metrics/accuracy.py:143
Method__call__
(self, arc_preds, rel_preds, arc_golds, rel_golds, mask)
hanlp/metrics/parsing/labeled_f1.py:21
Method__call__
(self, arc_preds, rel_preds, arc_golds, rel_golds, mask)
hanlp/metrics/parsing/attachmentscore.py:40
Method__call__
(self, arc_preds, rel_preds, arc_golds, rel_golds, mask)
hanlp/metrics/parsing/labeled_score.py:21
Method__call__
(self, arc_preds, rel_preds, arc_golds, rel_golds, mask)
hanlp/metrics/parsing/labeled_f1_tf.py:20
Method__call__
(self, preds, golds)
hanlp/metrics/parsing/span.py:45
Method__call__
(self, pred_tags: List[List[str]], gold_tags: List[List[str]])
hanlp/metrics/chunking/chunking_f1.py:16
Method__call__
(self, pred: Set[Tuple[int, int, str]], gold: Set[Tuple[int, int, str]], num_tokens=None)
hanlp/metrics/chunking/chunking_f1.py:65
Method__call__
(self, pred_seqs: List[List[str]], true_seqs: List[List[str]])
hanlp/metrics/chunking/conlleval.py:109
Method__call__
(self, y_true: tf.Tensor, y_pred: tf.Tensor, sample_weight: tf.Tensor = None, **kwargs)
hanlp/metrics/chunking/chunking_f1_tf.py:36
Method__call__
(self, batch: dict, mask=None, **kwargs)
hanlp/layers/embeddings/fast_text.py:57
Method__call__
(self, batch: dict, mask=None, **kwargs)
hanlp/layers/embeddings/fast_text.py:73
Method__call__
(self, batch: dict, **kwargs)
hanlp/layers/embeddings/contextual_string_embedding.py:87
Method__call__
(self, sample: dict)
hanlp/layers/embeddings/contextual_string_embedding.py:140
Method__call__
(self, sample: dict)
hanlp/layers/embeddings/word2vec.py:312
Method__call__
(self, y_true, y_pred, sample_weight=None, **kwargs)
hanlp/layers/crf/crf_layer_tf.py:139
Method__call__
(self, step)
hanlp/optimizers/adamw/optimization.py:43
Method__call__
(self, lengths: List[int], shuffle=False, **kwargs)
hanlp/common/dataset.py:751
Method__call__
(self, sample)
hanlp/common/transform.py:28
Method__call__
(self, sample: dict)
hanlp/common/transform.py:52
Method__call__
(self, sample: dict)
hanlp/common/transform.py:184
Method__call__
(self, sample: dict)
hanlp/common/transform.py:238
Method__call__
(self, sample: dict)
hanlp/common/transform.py:282
Method__call__
(self, sample: dict)
hanlp/common/transform.py:292
Method__call__
(self, sample: dict)
hanlp/common/transform.py:301
Method__call__
(self, sample)
hanlp/common/transform.py:325
Method__call__
(self, sample: dict)
hanlp/common/transform.py:356
Method__call__
(self, sample: dict)
hanlp/common/transform.py:367
Method__call__
(self, sample: dict)
hanlp/common/transform.py:383
Method__call__
(self, sample: dict)
hanlp/common/transform.py:406
Method__call__
(self, sample: dict)
hanlp/common/transform.py:413
Method__call__
(self, sample: dict)
hanlp/common/transform.py:443
Method__call__
(self, sample: dict)
hanlp/common/transform.py:459
Method__call__
(self, sample: dict)
hanlp/common/transform.py:475
Method__call__
(self, sample: dict)
hanlp/common/transform.py:484
Method__call__
(self, sample: dict)
hanlp/common/transform.py:509
Method__call__
(self, sample: dict)
hanlp/common/transform.py:539
← previousnext →1,201–1,300 of 2,968, ranked by callers