{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== '免费Z-image图片生成' && linkText !== '免费Z-image图片生成' ) { link.textContent = '免费Z-image图片生成'; link.href = 'https://zimage.run'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== 'Vibevoice' ) { link.textContent = 'Vibevoice'; link.href = 'https://vibevoice.info/'; replacedLinks.add(link); } // 替换Pricing链接 - 仅替换一次 else if ( (linkHref.includes('/pricing') || linkHref === '/pricing' || linkText === 'Pricing' || linkText.match(/^s*Pricings*$/i)) && linkText !== '免费去水印' ) { link.textContent = '免费去水印'; link.href = 'https://sora2watermarkremover.net/'; replacedLinks.add(link); } // 替换Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) && linkText !== 'GitHub加速' ) { link.textContent = 'GitHub加速'; link.href = 'https://githubproxy.cc'; replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, '免费Z-image图片生成'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); \",\n \"wikitext\": \"#REDIRECT [[PREC]]\"\n}"},"license":{"kind":"list like","value":[{"name":"Creative Commons Attribution Share Alike 3.0 Unported","identifier":"CC-BY-SA-3.0","url":"https://creativecommons.org/licenses/by-sa/3.0/"}],"string":"[\n {\n \"name\": \"Creative Commons Attribution Share Alike 3.0 Unported\",\n \"identifier\": \"CC-BY-SA-3.0\",\n \"url\": \"https://creativecommons.org/licenses/by-sa/3.0/\"\n }\n]"},"event":{"kind":"string","value":"{\n \"identifier\": \"eda3767c-6b89-4984-8078-f23bd602114c\",\n \"type\": \"update\",\n \"date_created\": \"2024-04-24T15:56:15.415696Z\",\n \"date_published\": \"2024-04-24T15:56:15.60773Z\"\n}"},"main_entity":{"kind":"null"},"additional_entities":{"kind":"null"},"categories":{"kind":"null"},"templates":{"kind":"null"},"redirects":{"kind":"null"},"image":{"kind":"null"}}},{"rowIdx":1,"cells":{"name":{"kind":"string","value":"Mundial de Fútbol de 1962"},"identifier":{"kind":"number","value":16198,"string":"16,198"},"abstract":{"kind":"truncated","value":"\"O Mundial de Chile de 1962 foi un certame deportivo que tivo lugar en Chile entre o 30 de maio e o "},"date_created":{"kind":"null"},"date_modified":{"kind":"timestamp","value":"2024-03-30T07:02:56","string":"2024-03-30T07:02:56"},"version":{"kind":"truncated","value":"{\"identifier\":6689943,\"tags\":[\"wikieditor\"],\"editor\":{\"identifier\":23204,\"name\":\"Breogan2008\"},\"numb"},"previous_version":{"kind":"null"},"url":{"kind":"string","value":"https://gl.wikipedia.org/wiki/Mundial_de_F%C3%BAtbol_de_1962"},"namespace":{"kind":"string","value":"{\n \"identifier\": 0\n}"},"in_language":{"kind":"string","value":"{\n \"identifier\": \"gl\"\n}"},"is_part_of":{"kind":"string","value":"{\n \"identifier\": \"glwiki\",\n \"url\": \"https://gl.wikipedia.org\"\n}"},"article_body":{"kind":"truncated","value":"{\"html\":\"\\n
Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowNotImplementedError
Message:      Cannot write struct type 'scores' with no child field to Parquet. Consider adding a dummy child field.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 583, in write_table
                  self._build_writer(inferred_schema=pa_table.schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer
                  self.pa_writer = self._WRITER_CLASS(self.stream, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__
                  self.writer = _parquet.ParquetWriter(
                File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__
                File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'scores' with no child field to Parquet. Consider adding a dummy child field.
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2029, in _prepare_split_single
                  num_examples, num_bytes = writer.finalize()
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 602, in finalize
                  self._build_writer(self.schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 404, in _build_writer
                  self.pa_writer = self._WRITER_CLASS(self.stream, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/pyarrow/parquet/core.py", line 1010, in __init__
                  self.writer = _parquet.ParquetWriter(
                File "pyarrow/_parquet.pyx", line 2157, in pyarrow._parquet.ParquetWriter.__cinit__
                File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowNotImplementedError: Cannot write struct type 'scores' with no child field to Parquet. Consider adding a dummy child field.
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1396, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1045, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1029, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1124, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1884, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2040, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

name
string
identifier
int64
abstract
string
date_created
timestamp[us]
date_modified
timestamp[us]
version
dict
previous_version
dict
url
string
namespace
dict
in_language
dict
is_part_of
dict
article_body
dict
license
list
event
dict
main_entity
dict
additional_entities
list
categories
list
templates
list
redirects
list
image
dict
Processo Revolucionário Em Curso
619,665
#REDIRECT PREC
2024-04-24T15:56:14
2024-04-24T15:56:14
{ "identifier": 6718381, "comment": "Nova páxina: \"<nowiki>#</nowiki>REDIRECT [[PREC]]\"", "tags": [ "visualeditor" ], "scores": {}, "editor": { "identifier": 111586, "name": "Gasparoff", "edit_count": 25384, "groups": [ "*", "user", "autoconfirmed" ], "date_started": "2020-10-20T16:11:59" }, "number_of_characters": 35, "size": { "value": 35, "unit_text": "B" }, "maintenance_tags": {} }
{}
https://gl.wikipedia.org/wiki/Processo_Revolucion%C3%A1rio_Em_Curso
{ "identifier": 0 }
{ "identifier": "gl" }
{ "identifier": "glwiki", "url": "https://gl.wikipedia.org" }
{ "html": "<!DOCTYPE html>\n<html prefix=\"dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/\" about=\"https://gl.wikipedia.org/wiki/Special:Redirect/revision/6718381\"><head prefix=\"mwr: https://gl.wikipedia.org/wiki/Special:Redirect/\"><meta charset=\"utf-8\"/><meta property=\"mw:pageId\" content=\"619665\"/><meta property=\"mw:pageNamespace\" content=\"0\"/><link rel=\"dc:replaces\" resource=\"mwr:revision/0\"/><meta property=\"mw:revisionSHA1\" content=\"5eacc8d592c71d615e90add06a148ef0c3505f95\"/><meta property=\"dc:modified\" content=\"2024-04-24T15:56:14.000Z\"/><meta property=\"mw:htmlVersion\" content=\"2.8.0\"/><meta property=\"mw:html:version\" content=\"2.8.0\"/><link rel=\"dc:isVersionOf\" href=\"//gl.wikipedia.org/wiki/Processo_Revolucion%C3%A1rio_Em_Curso\"/><base href=\"//gl.wikipedia.org/wiki/\"/><title>Processo Revolucionário Em Curso</title><link rel=\"stylesheet\" href=\"/w/load.php?lang=gl&amp;modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&amp;only=styles&amp;skin=vector\"/><meta http-equiv=\"content-language\" content=\"gl\"/><meta http-equiv=\"vary\" content=\"Accept\"/></head><body id=\"mwAA\" lang=\"gl\" class=\"mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output\" dir=\"ltr\"><section data-mw-section-id=\"0\" id=\"mwAQ\"><p id=\"mwAg\"><span typeof=\"mw:Nowiki\" id=\"mwAw\">#</span>REDIRECT <a rel=\"mw:WikiLink\" href=\"./PREC\" title=\"PREC\" id=\"mwBA\">PREC</a></p></section></body></html>", "wikitext": "<nowiki>#</nowiki>REDIRECT [[PREC]]" }
[ { "name": "Creative Commons Attribution Share Alike 3.0 Unported", "identifier": "CC-BY-SA-3.0", "url": "https://creativecommons.org/licenses/by-sa/3.0/" } ]
{ "identifier": "eda3767c-6b89-4984-8078-f23bd602114c", "type": "update", "date_created": "2024-04-24T15:56:15.415696Z", "date_published": "2024-04-24T15:56:15.60773Z" }
null
null
null
null
null
null
Mundial de Fútbol de 1962
16,198
"O Mundial de Chile de 1962 foi un certame deportivo que tivo lugar en Chile entre o 30 de maio e o (...TRUNCATED)
null
2024-03-30T07:02:56
{"identifier":6689943,"tags":["wikieditor"],"editor":{"identifier":23204,"name":"Breogan2008"},"numb(...TRUNCATED)
null
https://gl.wikipedia.org/wiki/Mundial_de_F%C3%BAtbol_de_1962
{ "identifier": 0 }
{ "identifier": "gl" }
{ "identifier": "glwiki", "url": "https://gl.wikipedia.org" }
{"html":"<!DOCTYPE html>\n<html prefix=\"dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/(...TRUNCATED)
[{"name":"Creative Commons Attribution Share Alike 3.0 Unported","identifier":"CC-BY-SA-3.0","url":"(...TRUNCATED)
{"identifier":"cc0ca7de-05ed-478f-8660-47f1e84095f3","type":"update","date_created":"2024-04-28T19:3(...TRUNCATED)
{ "identifier": "Q160813", "url": "https://www.wikidata.org/entity/Q160813" }
[{"identifier":"P664","url":"https://www.wikidata.org/entity/P664","aspects":["L.gl"]},{"identifier"(...TRUNCATED)
[{"name":"Categoría:Fútbol en Chile","url":"https://gl.wikipedia.org/wiki/Categoría:Fútbol_en_Ch(...TRUNCATED)
[{"name":"Modelo:HUNb","url":"https://gl.wikipedia.org/wiki/Modelo:HUNb"},{"name":"Modelo:ARGb","url(...TRUNCATED)
[{"name":"Copa Mundial de Fútbol de 1962","url":"https://gl.wikipedia.org/wiki/Copa_Mundial_de_Fút(...TRUNCATED)
{"content_url":"https://upload.wikimedia.org/wikipedia/commons/3/32/Hist%C3%B3rica_chilenita_de_Hono(...TRUNCATED)

No dataset card yet

Downloads last month
6