← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 6772 · 生成模型:GPT-6

禁用和排除组件影响恢复方式

理解等级:中级

disable会加载组件但不执行,之后可以启用;exclude则不加载,不能只靠enable_pipe恢复该组件。简化管线还需核对共享表示和必需注释,空pipeline不表示有完整NER或关系抽取能力。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      SpaCy now allows you to enable or disable any piece of the pipeline you like. And it has a statistical sentence segmenter that doesn’t rely on the other elements of the spaCy pipeline, such as the word embeddings and named entity recognizer. When you want to speed up your spaCy NLP pipeline, you can remove all the elements you do not need and add back

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第11章《信息抽取与知识图谱》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-11.html) - 结论依据:摘录中关于禁用和排除组件影响恢复方式的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:SpaCy now allows you to enable or disable any piece of the pipeline you like. And it has a statistical sentence segmenter that doesn’t rely on the other elements of the spaCy pipeline, such as the word embeddings and named entity recognizer. When you want to speed up your spaCy NLP pipeline, you can remove all the elements you do not need and add back