gpt4 book ai didi

text - 是否有标记语言来描述含义?

转载 作者:行者123 更新时间:2023-12-01 05:33:52 26 4
gpt4 key购买 nike

我很好奇是否真的有一种标记语言来描述文本的含义:

这里有一些我的意思的例子以及它的样子:

<text>Stack Overflow is a programming Q & A site that’s free. Free to ask questions,
free to answer questions, free to read, free to index, built with plain old HTML, no
fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no
JavaScript windows dropping down in front of the answer asking for $12.95 to go away.
You can register if you want to collect karma and win valuable flair that will appear
next to your name, but otherwise, it’s just free. And fast. Very, very fast.</text>

现在我想向它添加元信息,以便我可以赋予文本一个含义:
<mark from="0" to="14" object="Stack Overflow">Stack Overflow is a online community for coders.
The website is: www.stackoverflow.com</mark>
<mark from="20" to="31" object="programming" source="en.wikipedia.org/wiki/programming">
Computer programming (often shortened to programming or coding) is the process of
designing, writing, testing, debugging, and maintaining the source code of computer
programs</mark>

我希望已经有一些语言因为我糟糕的“搜索”能力而没有找到。

编辑:我不是指实际上像 HTML 的语言。

这对我来说是一个标准的 html 标记:
<p>My really <span class="important">interessting</span> paragraph</p>

我想启用交叉点并多次描述一个部分,而不是像上面的例子那样触摸原文:
<text>Stack Overflow is a programming Q & A site that’s free. Free to ask questions,
free to answer questions, free to read, free to index, built with plain old HTML, no
fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no
JavaScript windows dropping down in front of the answer asking for $12.95 to go away.
You can register if you want to collect karma and win valuable flair that will appear
next to your name, but otherwise, it’s just free. And fast. Very, very fast.</text>

现在我想在第一行标记“Stack Overflow”并描述它。接下来我想描述“编程”并说明这是什么和下一个“问答”,然后是一个棘手的部分:我想描述什么是“编程问答网站”。

这里有一些我只是弥补:
<mark type="description" line="1" from="0" to="15" subject="Stack Overflow" language="English" source="http://en.wikipedia.org/wiki/Stack_overflow">
In software, a stack overflow occurs when too much memory is used on the call stack.
</mark>
<mark type="description" line="1" from="25" to="40" subject="programming" language="English" source="http://en.wikipedia.org/wiki/programming">
Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs.
</mark>
<mark type="alias" line="1" from="42" to="47" subject="Q & A" language="English">
Question and Answer
</mark>
<mark type="description" line="1" from="25" to="52" subject="programming Q & A site" language="English" author="xMRW">
A website that offers people answers on questions related to the subject programming.
</mark>
<mark type="description" line="1" from="25" to="52" subject="programming Q & A site" language="German" author="xMRW">
Das gleiche in Deutsch.
</mark>

最佳答案

是的,它被称为语义标记。例如,您可以阅读 RDF .

开始在 Wipikepia 上阅读这篇关于 Semantic Web 的文章而这个介绍是关于Semantic Markup ,它们是许多其他链接和引用资料的良好起点。

您也可能对。。。有兴趣:

  • Wiki ,它不是真正的语义标记,但它更符合您在示例中编写的内容。
  • HTML 5 microdata : 简单地在 HTML 标记中嵌入语义元数据。
  • 关于text - 是否有标记语言来描述含义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9870206/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com