ErrLookup › hankcs/HanLP
hankcs/HanLP
中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理 · Python · 474 source files
Analyzed at ddb1299bdd on 2026-08-27. 85 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| error | http | error | hanlp, word2vec, embedding, not-implemented, training |
| output ({}) must be of type bool or str | validation | error | hanlp, criterion, embedding, not-implemented |
| Call fit or load before evaluate. | error_code | error | hanlp, training-loop, embedding, not-implemented |
| Unrecognized devices {devices} | validation | error | hanlp, dataloader, embedding, not-implemented |
| Unsupported argument length: {item} | validation | error | hanlp, evaluation, embedding, not-implemented |
| Unsupported argument type: {item} | validation | error | hanlp, feedforward, config-validation, shape-mismatch |
| Unrecognized mapper type {mapper} | validation | error | hanlp, feedforward, activation, config-validation |
| self.model.config.pad_token_id has to be defined. | validation | error | hanlp, feedforward, dropout, config-validation |
| embed_dim must be divisible by num_heads (got `embed_dim`: { | validation | error | hanlp, scalar-mix, config-validation, layer-mixing |
| Attention weights should be of size {(bsz * self.num_heads, | validation | error | hanlp, scalar-mix, forward, shape-mismatch |
| Attention mask should be of size {(bsz, 1, tgt_len, src_len) | validation | error | hanlp, time-distributed, tensor-input, runtime-error |
| Head mask for a single layer should be of size {(self.num_he | validation | error | hanlp, time-distributed, dimension-error, tensor-shape |
| `attn_output` should be of size {(bsz, self.num_heads, tgt_l | validation | error | hanlp, weight-normalization, keras, layer-wrapper |
| You cannot specify both input_ids and inputs_embeds at the s | validation | error | hanlp, metrics, accuracy, config-validation |
| You have to specify either input_ids or inputs_embeds | validation | error | hanlp, metrics, accuracy, invalid-argument |
| The head_mask should be specified for {len(self.layers)} lay | validation | error | hanlp, metrics, shape-mismatch, gold-labels |
| You cannot specify both decoder_input_ids and decoder_inputs | validation | error | hanlp, metrics, label-index, vocab-mismatch |
| You have to specify either decoder_input_ids or decoder_inpu | validation | error | hanlp, metrics, shape-mismatch, multi-label |
| The `{mask_name}` should be specified for {len(self.layers)} | validation | error | hanlp, metrics, mask, shape-mismatch |
| If no `decoder_input_ids` or `decoder_inputs_embeds` are pas | validation | error | hanlp, amr, smatch, version-mismatch, evaluation |
| Got average f{average}, expected one of None, 'token', or 'b | validation | error | python, pytorch, loss-function, argument-validation |
| alpha must be float, list of float, or torch.FloatTensor, {} | validation | error | python, pytorch, focal-loss, type-error |
| Only supports floating point dtypes. | validation | error | python, pytorch, dtype, loss-function |
| Does not support dtype " + str(dtype) | validation | error | python, pytorch, bfloat16, mixed-precision |
| activation must be callable: type={} | validation | error | python, pytorch, activation-function, argument-validation |
| DataParallel not supported when CRF is used | validation | error | python, pytorch, crf, multi-gpu, dataparallel |
| transformers has its own tagger, not need to convert idx for | exception | error | python, tensorflow, transformers, not-implemented |
| transformers has its own tagger, not need to convert idx for | exception | error | python, tensorflow, transformers, not-implemented |
| Chinese Treebank 9.0 is a copyright dataset owned by LDC whi | exception | critical | python, dataset, licensing, ldc, file-not-found |
| Unsupported version {version} | validation | error | python, stanford-parser, dependency-parsing, argument-validation |
| Conversion failed with code {code} for {src}. The err messag | exception | error | python, java, subprocess, stanford-parser, out-of-memory |
| Negative offset occurred, maybe doc_level_offset=False | exception | error | python, srl, ontonotes, conll2012, data-loading |
| Offset exceeds sentence length, maybe doc_level_offset=True | exception | error | python, srl, ontonotes, conll2012, data-loading |
| Your python command needs to be Python2, not {version.strip( | exception | error | python, python2, environment, ontonotes, dependency |
| Unsupported tagging scheme {tagging_scheme}. | exception | error | python, tokenization, tagging-scheme, not-implemented |
| invalid number of tags: {num_tags} | exception | error | python, pytorch, crf, argument-validation |
| invalid reduction: {reduction} | exception | error | python, pytorch, crf, argument-validation |
| emissions must have dimension of 3, got {emissions.dim()} | exception | error | python, pytorch, crf, tensor-shape |
| expected last dimension of emissions is {self.num_tags}, got | exception | error | python, pytorch, crf, tensor-shape, vocab-mismatch |
| the first two dimensions of emissions and tags must match, g | exception | error | hanlp, crf, pytorch, shape-mismatch, validation |
| the first two dimensions of emissions and mask must match, g | exception | error | hanlp, crf, pytorch, mask, shape-mismatch |
| mask of the first timestep must all be on | exception | error | hanlp, crf, pytorch, mask, sequence-padding |
| The last dimension of the inputs to `CRF` should be defined. | exception | error | hanlp, tensorflow, keras, crf, input-shape |
| The last dimension of the input shape must be equal to outpu | exception | error | hanlp, tensorflow, keras, crf, dimension-mismatch |
| Unsupported dim: {x.dim()}. Only 2d (T,C) or 3d (B,T,C) is s | exception | error | hanlp, pytorch, dropout, tensor-rank |
| Unrecognized type for {embed} | exception | error | hanlp, embedding, char-cnn, type-validation |
| Unrecognized type for {embed} | exception | error | hanlp, embedding, char-rnn, type-validation |
| Not supported. | exception | error | hanlp, fasttext, dataset, not-implemented |
| Unsupported init {init} | exception | error | hanlp, word2vec, embedding-init, config-validation |
| Unsupported normalization method {normalize} | exception | error | hanlp, word2vec, normalization, config-validation |
| Unsupported parameter type: {embed} | exception | error | hanlp, word2vec, embedding, type-validation |
| Not supported. | exception | error | hanlp, word2vec, dataset, not-implemented |
| Unrecognized label encoding {self.label_encoding} | exception | error | config, nlp, chunking, validation |
| eval.pl exited with error code {exitcode} and error message | exception | error | subprocess, perl, dependency-parsing, evaluation |
| Prediction file {pred_file.name} does not end a sentence at | exception | error | file-format, conll, alignment, parsing |
| mask not supported in SpearmanCorrelation for now. | exception | error | nlp, metric, api-misuse, bug |
| Expect X to be 2 or 3 elements but got {repr(X)} | exception | error | tensorflow, parsing, input-shape, validation |
| Unknown data arrangement | exception | error | data-format, conll, transform, validation |
| {} contains None or zero-length word {} | exception | error | data-quality, segmentation, validation |
| The identifier {save_dir} resolves to a nonexistent meta fil | exception | error | model-loading, file-not-found, hanlp |
| Some modules ({e.name} etc.) required by this model are miss | exception | error | installation, missing-dependency, python |
| Hugging Face 🤗 Transformers failed to download because your | exception | error | network, offline, transformers, model-download |
| {encoding} encoding was not supported/tested.Supported encod | exception | error | encoding, file-io, not-implemented |
| {path} | exception | error | file-not-found, path, validation |
| Failed to load {tsv_file_path}: {sent} | exception | error | tsv, data-format, corpus, validation |
| Expected a file (`.fileno()`) or a file descriptor | exception | error | file-descriptor, stdout, redirection |
| {err} The command is: {cmd} | exception | error | subprocess, shell, evaluation, external-tool |
| {self.filepath} | exception | error | file-not-found, iterator, cache |
| {} contains None or zero-length word {} | exception | error | data-quality, segmentation, span |
| Unknown constraint type: {constraint_type} | exception | error | nlp, span, config, validation |
| " ".join(tag_sequence) | exception | error | nlp, ner, tag-scheme, validation |
| Invalid encoding {encoding} passed to 'to_bioul'. | exception | error | ner, tagging-scheme, argument-validation |
| Unsupported type of {repr(e)} | validation | error | tensor, dtype, data-pipeline |
| No translation for {lang}. Please contribute to our translat | exception | error | localization, document, not-implemented |
| Coarse tokenization not supported for {language}. Please set | exception | error | tokenization, restful-api, language |
| As you did not pass in `headers` to `TableDataset`, the firs | console | warning | dataset, csv, headers |
| The class `PretrainedBartModel` has been depreciated, please | console | warning | deprecation, transformers, bart |
| Caching for the dataset is not enabled, try `dataset.purge_c | console | warning | dataset, performance, caching, mtl |
| The tag scheme for {self.vocabs.tag.idx_to_token} might be I | console | warning | ner, tagging-scheme, decoding |
| The main dependency conflicts with 2nd dependency at ID={i}, | console | warning | parsing, semeval, dataset |
| `do_basic_tokenize=False` might not work when `use_fast=True | console | warning | tokenizer, transformers, chinese |
| Failed to parse results from smatch: {line} | console | warning | amr, evaluation, smatch, parsing |
| Input tokens {input_tokens} exceed the max sequence length o | console | warning | transformer, truncation, sequence-length |
| Input tokens {words} exceed the max sequence length of {max_ | console | warning | transformer, truncation, sequence-length |
| iob1_to_bioul has been replaced with 'to_bioul' to allow mor | console | info | python, hanlp, deprecation, future-warning, ner-tagging |