展示 HN:188 部宪法的三维语义地图(3 万条条款,嵌入式向量)
Show HN: Semantic atlas of 188 constitutions in 3D (30k articles, embeddings)

原始链接: https://constitutionalmap.ai/en

嵌入将法律文本转化为向量,聚类步骤将讨论相关宪法主题的向量分组。在国家模式下,颜色显示政治来源。在聚类模式下,颜色显示主题邻域。大型、密集的云团通常表示重复出现的宪法思想,例如权利、机构、紧急权力、选举或修正案规则。孤立的点通常标记不寻常的条款、罕见的措辞或特定国家的宪法设计选择。该平台提供两种类型的搜索:关键词搜索查找字面术语出现,而语义搜索检索概念上附近的段落,即使没有匹配的术语。搜索结果突出显示3D画布中的语义空间区域,将您阅读的内容与其位置联系起来。

## 宪法语义图谱:摘要 一个名为[constitutionalmap.ai](https://constitutionalmap.ai)的新项目,提供了一种比较宪法的新方法。开发者joaoli131利用Gemini嵌入和UMAP投影创建了一个3D“语义图谱”,其中包含188个国家/地区的30,828条宪法条款。 这使得用户能够找到概念上相似的条款,*即使措辞不同*,从而克服了传统关键词搜索或复杂法律工具的局限性。该项目托管在GitHub上,源代码可供审查。 初步反馈表明,可以将该项目扩展到包括历史宪法,以可视化法律框架随时间推移的演变——对于宪法频繁变化的国家(如巴西)来说,这是一个特别有趣的前景。一位评论员还提出了根据理想主义或乌托邦元素过滤宪法的问题,突出了法律文件与社会现实之间的复杂关系。
相关文章

原文

The embedding turns legal text into vectors, and the clustering step groups vectors that tend to discuss related constitutional themes. In country mode, color shows political origin. In cluster mode, color shows thematic neighborhood.

Large, dense clouds usually indicate recurring constitutional ideas such as rights, institutions, emergency powers, elections, or amendment rules. Isolated points often mark unusual provisions, rare wording, or country-specific constitutional design choices.

The platform offers two types of search: keyword search finds literal term occurrences, while semantic search retrieves conceptually nearby passages even without matching terms. Search results highlight regions of the semantic space in the 3D canvas, linking what you read to where it sits.

联系我们 contact @ memedata.com