简体   繁体   English

谷歌如何提供页面摘要

[英]how does google gives summary of the page

Here is a snapshot of a query what is benzene . 是查询what is benzene的快照。

Google generally provide summaries of documents or websites located in response to a query. Google通常会提供针对查询的文档或网站摘要。 A user browses such summaries, and typically selects a link associated with a summary that best matches the search. 用户浏览这样的摘要,并且通常选择与最匹配搜索的摘要相关联的链接。

I want to know that how does Google gives most accurate summery of any webpage. 我想知道Google如何为任何网页提供最准确的摘要。 I have tried this by selecting the keywords (snippets) of any query and compute the distances between snippets and every single sentences in the webpage using Cosine Similarity and select the sentence having highest score but the result is not satisfying. 我通过选择任何查询的关键字(snippets)并使用Cosine Similarity计算网页中的片段和每个句子之间的距离并选择具有最高分数但结果不满意的句子来尝试此操作。 I want to know is there any better algorithms or any alternative way of generating summaries of web documents? 我想知道是否有更好的算法或任何替代方法来生成Web文档的摘要?

What you can use to give a summary is using w meta description tag. 您可以用来提供摘要的是使用w元描述标记。 Google is using it as well unless bot decides that he can generate more accurate description, where more accurate means better fitting to your search query. 谷歌也在使用它,除非机器人决定他可以生成更准确的描述,其中更准确意味着更适合您的搜索查询。 For example one of summaries from image you've posted is straight from description 例如,您发布的图像摘要之一直接来自描述

<meta name="description" content="Benzene is a colorless, flammable liquid with a sweet odor. Learn what we know about benzene and cancer risk." />

Unless you're writing a search for some other kind of documents than webpages. 除非您正在编写搜索其他类型的文档而不是网页。 What many documents browsers do, they just give you a sentence (or couple words before/after) a matched keyword. 浏览器做了多少文档,他们只给你一个匹配关键字的句子(或之前/之后的几个单词)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM