jayliuwi commited on
Commit
3498566
·
verified ·
1 Parent(s): ab1e9bc

geoalign 0.1.0 is on PyPI: pip install geoalign; package metadata follows current packaging standards

Browse files
README.md CHANGED
@@ -284,7 +284,13 @@ print(changes[changes.old_code == "130103"][["year", "change_type", "main", "new
284
 
285
  `geoalign/` in this repository is a small Python library (Apache-2.0, standard library only, Python 3.8+) built on this data. It maps written names to codes, converts codes between years and shows the history of a code. When it is not sure, it gives no code and lists the candidates.
286
 
287
- Install the wheel from this repository:
 
 
 
 
 
 
288
 
289
  ```
290
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
@@ -510,7 +516,13 @@ print(changes[changes.old_code == "130103"][["year", "change_type", "main", "new
510
 
511
  仓库里的 `geoalign/` 是基于这份数据的 Python 工具库(Apache-2.0,只用标准库,Python 3.8 以上)。它把地名写法变成代码,在年份之间换算代码,查一个代码的沿革。没有把握时不给代码,给全部候选。
512
 
513
- 从本仓库安装 wheel:
 
 
 
 
 
 
514
 
515
  ```
516
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
 
284
 
285
  `geoalign/` in this repository is a small Python library (Apache-2.0, standard library only, Python 3.8+) built on this data. It maps written names to codes, converts codes between years and shows the history of a code. When it is not sure, it gives no code and lists the candidates.
286
 
287
+ Install from PyPI:
288
+
289
+ ```
290
+ pip install geoalign
291
+ ```
292
+
293
+ Or install the wheel from this repository:
294
 
295
  ```
296
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
 
516
 
517
  仓库里的 `geoalign/` 是基于这份数据的 Python 工具库(Apache-2.0,只用标准库,Python 3.8 以上)。它把地名写法变成代码,在年份之间换算代码,查一个代码的沿革。没有把握时不给代码,给全部候选。
518
 
519
+ 从 PyPI 安装:
520
+
521
+ ```
522
+ pip install geoalign
523
+ ```
524
+
525
+ 也可以从本仓库安装 wheel:
526
 
527
  ```
528
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
geoalign/README.md CHANGED
@@ -24,7 +24,13 @@ When the library is not sure, it returns no code and lists all candidates instea
24
 
25
  ### Install
26
 
27
- From the wheel in the dataset repository:
 
 
 
 
 
 
28
 
29
  ```
30
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
@@ -175,7 +181,13 @@ Code: Apache-2.0, see `LICENSE`. The pinyin in `geoalign/data/confusion.json` wa
175
 
176
  ### 安装
177
 
178
- 从数据集仓库里的 wheel 安装:
 
 
 
 
 
 
179
 
180
  ```
181
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
 
24
 
25
  ### Install
26
 
27
+ From PyPI:
28
+
29
+ ```
30
+ pip install geoalign
31
+ ```
32
+
33
+ Or from the wheel in the dataset repository:
34
 
35
  ```
36
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
 
181
 
182
  ### 安装
183
 
184
+ 从 PyPI 安装:
185
+
186
+ ```
187
+ pip install geoalign
188
+ ```
189
+
190
+ 也可以从数据集仓库里的 wheel 安装:
191
 
192
  ```
193
  pip install https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/resolve/main/geoalign/dist/geoalign-0.1.0-py3-none-any.whl
geoalign/dist/geoalign-0.1.0-py3-none-any.whl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7601a390bfdea1edd94157e72434ab1172ed95a44e08b60ad48f72735321b945
3
- size 566106
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:201965ce751ad78c57611e71d75f65f70c57b6e1a7a859b5856826e3cc057ba0
3
+ size 566361
geoalign/dist/geoalign-0.1.0.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8147dd2b78668e295ca6817ed24af105549add15c3b9f97907bf102eb23c4c2b
3
- size 568279
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8bbd3f4de06cd4c900fa3e043b175bf75550c5033a86327967a53fef07fcf5d
3
+ size 568925
geoalign/pyproject.toml CHANGED
@@ -1,21 +1,36 @@
1
  [build-system]
2
- requires = ["setuptools>=61"]
3
  build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "geoalign"
7
  version = "0.1.0"
8
- description = "把中国县级以上行政区划的名称对到官方代码,并在 2012 至 2025 年之间换算代码"
9
  readme = "README.md"
10
- license = {text = "Apache-2.0"}
 
 
 
11
  requires-python = ">=3.8"
12
  dependencies = []
13
  classifiers = [
14
- "License :: OSI Approved :: Apache Software License",
 
 
15
  "Programming Language :: Python :: 3",
 
16
  "Natural Language :: Chinese (Simplified)",
 
 
 
17
  ]
18
 
 
 
 
 
 
 
19
  [project.optional-dependencies]
20
  embed = ["sentence-transformers", "torch"]
21
 
 
1
  [build-system]
2
+ requires = ["setuptools>=77"]
3
  build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "geoalign"
7
  version = "0.1.0"
8
+ description = "Map Chinese administrative-division names (county level and above) to official codes, and convert codes between years 2012-2025. 把中国县级以上行政区划的名称对到官方代码。"
9
  readme = "README.md"
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE", "NOTICE"]
12
+ authors = [{name = "World Insight Lab"}]
13
+ keywords = ["china", "administrative divisions", "gazetteer", "geocoding", "entity linking", "行政区划", "地名"]
14
  requires-python = ">=3.8"
15
  dependencies = []
16
  classifiers = [
17
+ "Development Status :: 4 - Beta",
18
+ "Intended Audience :: Developers",
19
+ "Intended Audience :: Science/Research",
20
  "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3 :: Only",
22
  "Natural Language :: Chinese (Simplified)",
23
+ "Natural Language :: English",
24
+ "Topic :: Scientific/Engineering :: GIS",
25
+ "Topic :: Text Processing :: Linguistic",
26
  ]
27
 
28
+ [project.urls]
29
+ Homepage = "https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions"
30
+ Documentation = "https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/blob/main/geoalign/README.md"
31
+ Source = "https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions/tree/main/geoalign"
32
+ Dataset = "https://huggingface.co/datasets/WorldInsightLab/china-admin-divisions"
33
+
34
  [project.optional-dependencies]
35
  embed = ["sentence-transformers", "torch"]
36