enwiki-latest-abstract.xml.gz 中的摘要是否已损坏?
Are the abstracts in in enwiki-latest-abstract.xml.gz corrupted?
上周我一直在查看维基媒体摘要转储文件 (enwiki-latest-abstract.xml.gz),发现许多项目的摘要似乎已损坏。
例如,Alabama 的维基百科页面包含以下转储摘要:
<title>Wikipedia: Alabama</title>
<url>https://en.wikipedia.org/wiki/Alabama</url>
<abstract>(We dare defend our rights)</abstract>
同样,Abraham Lincoln 项的摘要是:
<title>Wikipedia: Abraham Lincoln</title>
<url>https://en.wikipedia.org/wiki/Abraham_Lincoln</url>
<abstract>| term_start1 = March 4, 1847</abstract>
这似乎是信息框中的部分片段。
enwiki-latest-abstract.xml.gz.
中的大多数项目似乎都存在这种损坏。
如果有人就这是否是错误或我是否对该转储文件有误解提出任何建议,我将不胜感激。
谢谢!
这可能只是 extraction code 表现不佳;不是很复杂。
FWIW 维基百科有两个不同的 extract/summary API,它们在这里似乎都表现得很好(较旧的,基于 api.php 的 API 有点损坏但没有完全损坏):
Alabama () is a state in the southeastern region of the United States.
Abraham Lincoln (; February 12, 1809 \u2013 April 15, 1865) was an American statesman and lawyer who served as the 16th president of the United States (1861\u20131865).
https://en.wikipedia.org/api/rest_v1/page/summary/Alabama
Alabama is a state in the southeastern region of the United States. It is bordered by Tennessee to the north, Georgia to the east, Florida and the Gulf of Mexico to the south, and Mississippi to the west. Alabama is the 30th largest by area and the 24th-most populous of the U.S. states. With a total of 1,500 miles (2,400 km) of inland waterways, Alabama has among the most of any state.
https://en.wikipedia.org/api/rest_v1/page/summary/Abraham_Lincoln
Abraham Lincoln was an American statesman and lawyer who served as the 16th president of the United States (1861–1865). Lincoln led the nation through its greatest moral, constitutional, and political crisis in the American Civil War. He preserved the Union, abolished slavery, strengthened the federal government, and modernized the U.S. economy.
虽然它们都没有转储。
上周我一直在查看维基媒体摘要转储文件 (enwiki-latest-abstract.xml.gz),发现许多项目的摘要似乎已损坏。
例如,Alabama 的维基百科页面包含以下转储摘要:
<title>Wikipedia: Alabama</title>
<url>https://en.wikipedia.org/wiki/Alabama</url>
<abstract>(We dare defend our rights)</abstract>
同样,Abraham Lincoln 项的摘要是:
<title>Wikipedia: Abraham Lincoln</title>
<url>https://en.wikipedia.org/wiki/Abraham_Lincoln</url>
<abstract>| term_start1 = March 4, 1847</abstract>
这似乎是信息框中的部分片段。
enwiki-latest-abstract.xml.gz.
中的大多数项目似乎都存在这种损坏。如果有人就这是否是错误或我是否对该转储文件有误解提出任何建议,我将不胜感激。
谢谢!
这可能只是 extraction code 表现不佳;不是很复杂。
FWIW 维基百科有两个不同的 extract/summary API,它们在这里似乎都表现得很好(较旧的,基于 api.php 的 API 有点损坏但没有完全损坏):
Alabama () is a state in the southeastern region of the United States.
Abraham Lincoln (; February 12, 1809 \u2013 April 15, 1865) was an American statesman and lawyer who served as the 16th president of the United States (1861\u20131865).
https://en.wikipedia.org/api/rest_v1/page/summary/Alabama
Alabama is a state in the southeastern region of the United States. It is bordered by Tennessee to the north, Georgia to the east, Florida and the Gulf of Mexico to the south, and Mississippi to the west. Alabama is the 30th largest by area and the 24th-most populous of the U.S. states. With a total of 1,500 miles (2,400 km) of inland waterways, Alabama has among the most of any state.
https://en.wikipedia.org/api/rest_v1/page/summary/Abraham_Lincoln
Abraham Lincoln was an American statesman and lawyer who served as the 16th president of the United States (1861–1865). Lincoln led the nation through its greatest moral, constitutional, and political crisis in the American Civil War. He preserved the Union, abolished slavery, strengthened the federal government, and modernized the U.S. economy.
虽然它们都没有转储。