什么样的数据库以及如何创建它来对文本进行分层分类?
它是一个我将从头开始的应用程序。我希望将jsp与phpmyadmin和mysql数据库一起使用。但我不知道应该如何创建我的数据库...我的数据是这样的
img833.imageshack.us/img833/9901/89112252。 png
EG 输入文本:“描述下图”(因此描述是在感知 P1 物理运动域中)输出将是:感知 p1,物理运动域,
但还有 3 个域,使其像一个层次结构,其中域是p1、p2 等等...我该如何构建这样的数据库?不同的域有不同数量的p1,p2
its an app that i will start from scratch .i wish to use jsp with phpmyadmin and mysql database.but i duno how should i create my database...my data is like this
img833.imageshack.us/img833/9901/89112252.png
EG Input text : "Describe the diagram below" (so describe is in Perception P1 Physchomotor Domain) the output will be : Perception p1, Physchomotor Domain
but there are 3 more domains which make it like a hierarchy where the domains are the parents of the p1,p2 and so on...how shud i build my database like this ? different domain hav different numbers of p1,p2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不完全确定您的数据集是什么或它应该做什么,但我会给您一些提示。
看来您有“域”,这将是您的对象模型(数据库中的一张表)。这些域可以有一个或多个父域或子域,因此您需要有一列包含父域的 ID(这将使您能够执行查询来查找父域或子域)。这通常是任何层次结构所需的全部内容。然后您将需要 1 列或多列数据。例如,我认为您想要一个名为“words”的列,它是一个可能存储为文本或 varchar 数据类型的字符串列表。
顺便说一句,如果您需要良好的帮助,您应该尝试使您的问题更加清晰,并使用良好的拼写和语法。当问题提出得当时,人们更愿意提供更多帮助。
I'm not entirely sure what your dataset is or what it is supposed to do, but I will give you some tips.
It seems that you have "domains" which would be your object model (one table in your database). These domains can have one or multiple parents or children, so you will want to have a column that contains the ID of the parent (this will enable you to do a query to find parents or children). This is typically all you need for any hierarchical structure. You will then want 1 or more columns for the data. For instance, I think you would want to have a column called "words" which would be a list of strings perhaps stored as text or varchar datatype.
And by the way, if you want good help, you should try to make your question more clear, and use good spelling and grammar. People like helping more when a question is framed properly.