PhraseGeocoder:用Python和SQL编写的简单地址解析器

时间:2021-03-21 12:11:03
【文件属性】:
文件名称:PhraseGeocoder:用Python和SQL编写的简单地址解析器
文件大小:32KB
文件格式:ZIP
更新时间:2021-03-21 12:11:03
Python 词组地理编码器 这是一个基于Python和Postgres的简单地理编码器,基于以下文章: : 要求 诗歌 Python 3.6+ Postgres 12 地理编码的国家地址文件( ) 安装 装诗 pip install poetry poetry install 用法 要设置GNAF,请先从上面的链接下载。然后使用以下代码,将gnaf_path和gnaf_aut_path中的路径替换为将数据提取到其中的文件夹的路径 # set up the GNAF database from phrasegeo import GNAFLoader # specify the name of the database gnaf = GNAFLoader("postgresql:///GNAF_VIC") # path to the auth and the state psv files gna
【文件预览】:
PhraseGeocoder-main
----phrasegeo()
--------Matcher.py(2KB)
--------datasets()
--------__init__.py(86B)
--------GNAFLoader.py(4KB)
----poetry.lock(37KB)
----pyproject.toml(336B)
----setup_example.py(553B)
----example.py(673B)
----README.md(2KB)
----tests()
--------__init__.py(0B)
--------test_phrasegeo.py(90B)
----queries()
--------phrase_inverted.sql(107B)
--------create_indexes.sql(223B)
--------create_tables_sqlserver.sql(9KB)
--------do_match4.sql(3KB)
--------add_fk_constraints.sql(11KB)
--------make_addresses.sql(2KB)
--------do_match_testing3.sql(3KB)
--------create_phrases.sql(487B)
--------create_gnaf.sql(7KB)
--------gnaf_stats.sql(1KB)
--------address_view.sql(2KB)
--------create_tables_ansi.sql(9KB)
--------do_match.sql(3KB)
--------create_geocoder_tables.sql(344B)
--------load_state_data.sql(1KB)
--------load_aut_data.sql(1KB)

网友评论