diff --git a/data/nouns/merged_nouns.json b/data/nouns/merged_nouns.json index e1d63bb..5b44458 100644 --- a/data/nouns/merged_nouns.json +++ b/data/nouns/merged_nouns.json @@ -4,6 +4,11 @@ "synonymous": [], "description": "在工程信息界面设置工程所属的特殊地区类型,如高海拔地区、严寒地区等。" }, + { + "name": "人力运输", + "synonymous": ["人运"], + "description": "" + }, { "name": "新型储能项目建设预算编制与计算规定(锂离子电池储能分册)", "synonymous": [], diff --git a/data/nouns/professional_nouns_index/index.faiss b/data/nouns/professional_nouns_index/index.faiss index e3f4468..d8c5910 100644 Binary files a/data/nouns/professional_nouns_index/index.faiss and b/data/nouns/professional_nouns_index/index.faiss differ diff --git a/data/nouns/professional_nouns_index/index.pkl b/data/nouns/professional_nouns_index/index.pkl index c70ea14..711e251 100644 Binary files a/data/nouns/professional_nouns_index/index.pkl and b/data/nouns/professional_nouns_index/index.pkl differ diff --git a/pyproject.toml b/pyproject.toml index b0bd223..3d9be23 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ requires-python = ">=3.11" dependencies = [ "bs4>=0.0.2", "faiss-cpu>=1.11.0", + "fastapi>=0.115.14", "flask>=3.1.1", "gevent>=25.5.1", "gunicorn>=23.0.0", @@ -24,6 +25,7 @@ dependencies = [ "requests>=2.32.4", "sqlalchemy>=2.0.41", "tqdm>=4.67.1", + "uvicorn>=0.35.0", "xlsxwriter>=3.2.5", ] diff --git a/uv.lock b/uv.lock index a085bd9..f1b08ea 100644 --- a/uv.lock +++ b/uv.lock @@ -344,6 +344,20 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/50/51/35b7a3f47f7859363a367c344ae5d415ea9eda65db0a7d497c7ea2c0b576/faiss_cpu-1.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:13eac45299532b10e911bff1abbb19d1bf5211aa9e72afeade653c3f1e50e042", size = 15005455, upload-time = "2025-04-28T07:48:16.173Z" }, ] +[[package]] +name = "fastapi" +version = "0.115.14" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pydantic" }, + { name = "starlette" }, + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ca/53/8c38a874844a8b0fa10dd8adf3836ac154082cf88d3f22b544e9ceea0a15/fastapi-0.115.14.tar.gz", hash = "sha256:b1de15cdc1c499a4da47914db35d0e4ef8f1ce62b624e94e0e5824421df99739", size = 296263, upload-time = "2025-06-26T15:29:08.21Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/53/50/b1222562c6d270fea83e9c9075b8e8600b8479150a18e4516a6138b980d1/fastapi-0.115.14-py3-none-any.whl", hash = "sha256:6c0c8bf9420bd58f565e585036d971872472b4f7d3f6c73b698e10cffdefb3ca", size = 95514, upload-time = "2025-06-26T15:29:06.49Z" }, +] + [[package]] name = "flask" version = "3.1.1" @@ -1422,6 +1436,7 @@ source = { virtual = "." } dependencies = [ { name = "bs4" }, { name = "faiss-cpu" }, + { name = "fastapi" }, { name = "flask" }, { name = "gevent" }, { name = "gunicorn" }, @@ -1439,6 +1454,7 @@ dependencies = [ { name = "requests" }, { name = "sqlalchemy" }, { name = "tqdm" }, + { name = "uvicorn" }, { name = "xlsxwriter" }, ] @@ -1446,6 +1462,7 @@ dependencies = [ requires-dist = [ { name = "bs4", specifier = ">=0.0.2" }, { name = "faiss-cpu", specifier = ">=1.11.0" }, + { name = "fastapi", specifier = ">=0.115.14" }, { name = "flask", specifier = ">=3.1.1" }, { name = "gevent", specifier = ">=25.5.1" }, { name = "gunicorn", specifier = ">=23.0.0" }, @@ -1463,6 +1480,7 @@ requires-dist = [ { name = "requests", specifier = ">=2.32.4" }, { name = "sqlalchemy", specifier = ">=2.0.41" }, { name = "tqdm", specifier = ">=4.67.1" }, + { name = "uvicorn", specifier = ">=0.35.0" }, { name = "xlsxwriter", specifier = ">=3.2.5" }, ] @@ -1619,6 +1637,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/1c/fc/9ba22f01b5cdacc8f5ed0d22304718d2c758fce3fd49a5372b886a86f37c/sqlalchemy-2.0.41-py3-none-any.whl", hash = "sha256:57df5dc6fdb5ed1a88a1ed2195fd31927e705cad62dedd86b46972752a80f576", size = 1911224, upload-time = "2025-05-14T17:39:42.154Z" }, ] +[[package]] +name = "starlette" +version = "0.46.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ce/20/08dfcd9c983f6a6f4a1000d934b9e6d626cff8d2eeb77a89a68eef20a2b7/starlette-0.46.2.tar.gz", hash = "sha256:7f7361f34eed179294600af672f565727419830b54b7b084efe44bb82d2fccd5", size = 2580846, upload-time = "2025-04-13T13:56:17.942Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8b/0c/9d30a4ebeb6db2b25a841afbb80f6ef9a854fc3b41be131d249a977b4959/starlette-0.46.2-py3-none-any.whl", hash = "sha256:595633ce89f8ffa71a015caed34a5b2dc1c0cdb3f0f1fbd1e69339cf2abeec35", size = 72037, upload-time = "2025-04-13T13:56:16.21Z" }, +] + [[package]] name = "tenacity" version = "9.1.2" @@ -1722,6 +1752,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" }, ] +[[package]] +name = "uvicorn" +version = "0.35.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/5e/42/e0e305207bb88c6b8d3061399c6a961ffe5fbb7e2aa63c9234df7259e9cd/uvicorn-0.35.0.tar.gz", hash = "sha256:bc662f087f7cf2ce11a1d7fd70b90c9f98ef2e2831556dd078d131b96cc94a01", size = 78473, upload-time = "2025-06-28T16:15:46.058Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d2/e2/dc81b1bd1dcfe91735810265e9d26bc8ec5da45b4c0f6237e286819194c3/uvicorn-0.35.0-py3-none-any.whl", hash = "sha256:197535216b25ff9b785e29a0b79199f55222193d47f820816e7da751e9bc8d4a", size = 66406, upload-time = "2025-06-28T16:15:44.816Z" }, +] + [[package]] name = "werkzeug" version = "3.1.3"