【问题标题】:geotext library is not picking up the correct name of cities in pythongeotext 库没有在 python 中选择正确的城市名称
【发布时间】:2018-08-31 09:58:58
【问题描述】:

嗨,我是 python 中的新蜜蜂,我们正在尝试从 python 的地理文本库中查找国家、城市名称,但它没有正确选择每个名称。任何人都可以请建议什么应该是错的。

在从电子邮件中读取数据时,它会选择“移动”作为电子邮件签名中的城市

from geotext import GeoText
places = GeoText("Hi , We need to book a flight from Mumbai to London on 13 Aug throuigh shivaji terminal.
Regards,
xyz
Mobile : 5368536
")

Output : ['Mumbai' ,'Moble']

请帮忙

【问题讨论】:

    标签: anaconda python-3.6 geotext


    【解决方案1】:

    美国各州共有三个城市名为“移动”。您无法避免选择它(除非您决定将该特定词作为城市来屏蔽 - 但很容易有其他城市的名称与常用词匹配)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多