存储同义词的良好数据库和结构 [英] Good database and structure to store synonyms

查看:15
本文介绍了存储同义词的良好数据库和结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您可以选择您想要的数据库并且必须存储(查询和更新)同义词,那么您会选择哪个数据库?你将如何存储它们?我们假设会有很多同义词(但我想这里的数据大小不会成为问题).

If you could choose the database you want and have to store (query and update) word synonyms then what database would you choose? And how would you store them? Let's assume that there will be a lot of synonyms (but I guess data size won't be a problem here).

推荐答案

保持非常简单,您可以创建一个单词表和同义词关系表.您可以考虑添加像 WordID1 < 这样的限制.WordID2 以防止重复成对的单词(例如 (1,2) 和 (2,1)).

Keeping it very simple, you could create a table of words and a relationship table for synonyms. You could consider adding a restriction like WordID1 < WordID2 to prevent repeating pairs of words (e.g, (1,2) and (2,1)).

这篇关于存储同义词的良好数据库和结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆