← 返回刚才阅读的位置

知识卡片

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

词序对逻辑查询尤其重要

理解等级:中级

NLP或natural且language这样的查询包含不同逻辑组合,词袋不足以保存组合与作用范围。三个问候词乱序仍大致可猜,并不能证明所有短句词序不重要;否定和角色交换即使很短也会改变结果。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Let’s try that (in our heads) on a much longer, more complex phrase, a logical statement where the order of the words matters a lot: >>> s = """Find textbooks with titles containing 'NLP', ... or 'natural' and 'language', or ... 'computational' and 'linguistics'.""" >>> len(set(s.split())) 12 >>> import numpy as np >>> np.arange(1, 12 + 1).prod() # factorial(12) = arange(1, 13).prod() 479001600 The number

    参考来源

    - 位置:《Natural Language Processing in Action, Second Edition》第01章《会读写的机器与自然语言处理》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-1.html) - 结论依据:摘录中关于词序对逻辑查询尤其重要的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Let’s try that (in our heads) on a much longer, more complex phrase, a logical statement where the order of the words matters a lot: >>> s = """Find textbooks with titles containing 'NLP', ... or 'natural' and 'language', or ... 'computational' and 'linguistics'.""" >>> len(set(s.split())) 12 >>> import numpy as np >>> np.arange(1, 12 + 1).prod() # factorial(12) = arange(1, 13).prod() 479001600 The number