我在jupyter笔记本上使用我的代码
!pip install ICE
!pip install zeroc-ice要求已经满足:c中的ICE:\python3.7\lib\site-package (0.0.2)要求已经满足:zeroc在c:\python3.7\lib\site-package (3.7.4)
input=['he and Chazz duel with all keys on the line.']
from ICE import CollocationExtractor
extractor = CollocationExtractor.with_collocation_pipeline('T1' , bing_key = 'Temp',pos_check = False)
print(extractor.get_collocations_of_length(input, length = 3))获得错误,如:
CollocationExtractor.with_collocation_pipeline('T1‘
ModuleNotFoundError跟踪(最近一次调用)在3输入=’he和Chazz‘与行上的所有键对决。’4-5来自ICE导入CollocationExtractor 6 7提取器=ModuleNotFoundError,bing_key = 'Temp',pos_check = False)
ModuleNotFoundError:没有名为“ICE”的模块
对不起,如果没有正确的可读性。
发布于 2020-09-07 13:09:56
你需要进口它作为‘冰’。
import ice
app = ice.cube()
if __name__ == '__main__':
app.run()对于zeroc-冰来说
import sys, Ice
with Ice.initialize(sys.argv) as communicator:
obj = communicator.stringToProxy("hello:tcp -h myhost.mydomain.com -p 10000")
obj.ice_ping()https://stackoverflow.com/questions/63777649
复制相似问题