chunkers/maxent_ne_chunker/english_ace_multiclass.pickle 找不到

LookupError Traceback (most recent call last) Cell In[34], line 3 1 from nltk import ne_chunk 2 sentence="Edison went to Tsinghua University today." ----> 3 print(ne_chunk(pos_tag(word_tokenize(sentence)))) File D:\anda install\exe\Lib\site-packages\nltk\chunk\__init__.py:183, in ne_chunk(tagged_tokens, binary) 181 else: 182 chunker_pickle = _MULTICLASS_NE_CHUNKER --> 183 chunker = load(chunker_pickle) 184 return chunker.parse(tagged_tokens) File D:\anda install\exe\Lib\site-packages\nltk\data.py:750, in load(resource_url, format, cache, verbose, logic_parser, fstruct_reader, encoding) 747 print(f"<<Loading {resource_url}>>") 749 # Load the resource. --> 750 opened_resource = _open(resource_url) 752 if format == "raw": 753 resource_val = opened_resource.read() File D:\anda install\exe\Lib\site-packages\nltk\data.py:876, in _open(resource_url) 873 protocol, path_ = split_resource_url(resource_url) 875 if protocol is None or protocol.lower() == "nltk": --> 876 return find(path_, path + [""]).open() 877 elif protocol.lower() == "file": 878 # urllib might not use mode='rb', so handle this one ourselves: 879 return find(path_, [""]).open() File D:\anda install\exe\Lib\site-packages\nltk\data.py:583, in find(resource_name, paths) 581 sep = "*" * 70 582 resource_not_found = f"\n{sep}\n{msg}\n{sep}\n" --> 583 raise LookupError(resource_not_found) LookupError: ********************************************************************** Resource maxent_ne_chunker not found. Please use the NLTK Downloader to obtain the resource: >>> import nltk >>> nltk.download('maxent_ne_chunker') For more information see: https://www.nltk.org/data.html Attempted to load chunkers/maxent_ne_chunker/english_ace_multiclass.pickle Searched in: - 'C:\\Users\\86130/nltk_data' - 'D:\\anda install\\exe\\nltk_data' - 'D:\\anda install\\exe\\share\\n
最新发布
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值