← 返回刚才阅读的位置

知识卡片

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

小数保护规则仍有输入边界

理解等级:中级

数字两侧的点不一定是句界,可先用上下文约束减少误切。本章规则保护相邻都是数字的小数,却不自动识别缩写、网址、版本号或所有语言标点;应明确范围并收集反例,避免不断堆规则却不测收益。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      What about text messages and tweets with abbreviated text, informal punctuation, and emojis? Hurried humans squish sentences together, leaving no space surrounding periods. The following regular expression could deal with periods in SMS messages that have letters on either side, and it would safely skip over numerical values:

    参考来源

    - 位置:《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) - 结论依据:摘录中关于小数保护规则仍有输入边界的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:What about text messages and tweets with abbreviated text, informal punctuation, and emojis? Hurried humans squish sentences together, leaving no space surrounding periods. The following regular expression could deal with periods in SMS messages that have letters on either side, and it would safely skip over numerical values: