← 返回刚才阅读的位置

知识卡片

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

限制加载数量需检查文件排序

理解等级:中级

limit截取向量文件中的一部分,可节省启动时间与内存,也可能漏掉业务所需词项。只有文件本来按频率排序,截取前N项才可叫最常见N项;部署也可按实际覆盖选择子集,而非只在开发时允许限制。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Working with word vectors can be memory intensive. If your available memory is limited or you don’t want to wait minutes for the word vector model to load, you can reduce the number of words loaded into memory by passing in the limit keyword argument. In the following example, you’ll load the 200,000 most common words from the Google News corpus:

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第06章《用词嵌入推理》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-6.html) - 结论依据:摘录中关于限制加载数量需检查文件排序的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Working with word vectors can be memory intensive. If your available memory is limited or you don’t want to wait minutes for the word vector model to load, you can reduce the number of words loaded into memory by passing in the limit keyword argument. In the following example, you’ll load the 200,000 most common words from the Google News corpus: