知识卡片
规则实体抽取要分语法与值域
经纬度候选可先按数字格式提取,再转换并验证纬度在±90、经度在±180等约束。本章正则允许99.99与199.99,未真正实现所称值域;还漏掉正号、整数等格式,不能将匹配当地点有效证明。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
In listing 11.2, let’s use your decimal number pattern from previous examples, but let’s be more restrictive and make sure the value is within the valid range for latitude (+/– 90°) and longitude (+/– 180°). You can’t go any farther north than the North Pole (+90°) or farther south than the South Pole (–90°). And if you sail from Greenwich, England 180° east (+180° longitude),
参考来源
- 位置:《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)
- 结论依据:摘录中关于规则实体抽取要分语法与值域的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:In listing 11.2, let’s use your decimal number pattern from previous examples, but let’s be more restrictive and make sure the value is within the valid range for latitude (+/– 90°) and longitude (+/– 180°). You can’t go any farther north than the North Pole (+90°) or farther south than the South Pole (–90°). And if you sail from Greenwich, England 180° east (+180° longitude),