我正在制作一个逻辑门仿真器,我正在尝试制作一个拖放菜单,当我拖放它时,我想创建div所来自的类( gate )的一个新实例,具有所有相同的功能。我当前的代码是: typeOfGates = [new and_gate(20,10),new or_gate(20,80),new or3_gate(20,150),new not_gateand_gate(10,10), the same as whatever class is being c
假设我在列表中过滤了要在下一次word2vec模型加载中使用的单词。我如何构建自己的KeyedVectors,只包含这些过滤过的单词列表?我试着去做:w2v_model_keyed.drop(word) AttributeError: 'KeyedVectors' object has no attribute 'drop'
谢谢