知识卡片
离群词判断依赖集合平均方向
doesnt_match一类接口比较候选与整体表示的接近程度,找相对离群词。它不是证明某词与其余所有词都无关,也不必等于每对距离总和最大;集合内容与模型语料会改变结果。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 用词嵌入推理
原书出处 · 1 处
- · 查看原书依据
Word vector models also allow you to determine unrelated terms. The gensim library provides a method called doesnt_match: >>> word_vectors.doesnt_match("potatoes milk cake computer".split()) 'computer' To determine the most unrelated term of the list, the method returns the term with the highest distance to all other list terms. If you want to perform calculations (e.g., the famous example king + woman × man = queen, which
参考来源
- 位置:《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)
- 结论依据:摘录中关于离群词判断依赖集合平均方向的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Word vector models also allow you to determine unrelated terms. The gensim library provides a method called doesnt_match: >>> word_vectors.doesnt_match("potatoes milk cake computer".split()) 'computer' To determine the most unrelated term of the list, the method returns the term with the highest distance to all other list terms. If you want to perform calculations (e.g., the famous example king + woman × man = queen, which