fact

Results issues of fact

Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [7 lines of output] Traceback (most recent call last): File...

traceback (most recent call last): File "f:\Code\UIE\.conda\Lib\site-packages\span_marker\configuration.py", line 114, in __getattribute__ return super().__getattribute__(key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "f:\Code\UIE\.conda\Lib\site-packages\transformers\configuration_utils.py", line 205, in __getattribute__ return super().__getattribute__(key) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'SpanMarkerConfig' object has no attribute 'label2id'...

### What would you like to share? WAF! ### Additional information _No response_

invalid

### Have you searched if there an existing issue for this? - [x] I have searched the existing issues ### Python version (python --version) python 3.14.0 ### Scrapling version (scrapling.__version__)...

invalid
question

System.out.println(CustomDictionary.add("高大上","a 1024")); termList = HanLP.segment("外观绝对高大上,不信的是没见过."); System.out.println(termList); 输出结果 [外观/n, 绝对/d, 高大/a, 上/f, ,/w, 不信/v, 的/ude1, 是/vshi, 没/d, 见过/v, ./w]

question

在windows下正常,放到centos下去跑,出现这个提示。

invalid

linux下大小写敏感,按照文档配置hanlp.properties会有问题,需要把hanlp.properties的全部字母小写。 另linux下出现“字符类型对应表加载失败”,解决如下。HanLP.Config.CharTypePath="/var/server/java/data/dictionary/other/CharType.dat.yes";

invalid

Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.ArrayIndexOutOfBoundsException: 65535 at com.hankcs.hanlp.collection.trie.bintrie.BinTrie.getChild(BinTrie.java:322) at com.hankcs.hanlp.collection.trie.bintrie.BaseNode.transition(BaseNode.java:56) at com.hankcs.hanlp.seg.Segment.combineByCustomDictionary(Segment.java:239) at com.hankcs.hanlp.seg.Viterbi.ViterbiSegment.segSentence(ViterbiSegment.java:55) at com.hankcs.hanlp.seg.Segment.seg(Segment.java:436)...

bug

一月 19, 2016 3:55:39 下午 com.hankcs.hanlp.dictionary.CustomDictionary load 严重: 自定义词典D:/Workspace/NLP/data/dictionary/custom/word.txt读取错误!java.lang.IllegalArgumentException: No enum constant com.hankcs.hanlp.corpus.tag.Nature.L 配置文件如下 root=D:/Workspace/NLP/ # 核心词典路径 CoreDictionaryPath=data/dictionary/CoreNatureDictionary.txt # 2元语法词典路径 BiGramDictionaryPath=data/dictionary/CoreNatureDictionary.ngram.txt # 停用词词典路径 CoreStopWordDictionaryPath=data/dictionary/stopwords.txt # 同义词词典路径 CoreSynonymDictionaryDictionaryPath=data/dictionary/synonym/CoreSynonym.txt # 人名词典路径 PersonDictionaryPath=data/dictionary/person/nr.txt...

question

把英文、数字的全角字符都转换为半角格式。

question