返回 Skill 列表
extension
分类: 数据与分析无需 API Key

将捕获的WARC页面转换为干净的文本和语言标记记录,使用 warc2text

当代理已经拥有WARC捕获数据并且需要可读文本、语言识别和可导出记录以进行审查、搜索或语料库构建时,请使用warc2text,而不是重新抓取页面。

person作者: user_3c6cb52ehubcommunity

将捕获的WARC页面转换为干净的文本和语言标记记录,使用 warc2text

Use warc2text when an agent already has WARC captures and needs readable text, language identification, and exportable records for review, search, or corpus building instead of re-crawling pages.

Prerequisites

warc2text build or binary, WARC input files, local output storage

Installation

Use the upstream install or setup path that matches your environment:

  • git clone --recurse-submodules https://github.com/1991513ccie-png/skills
  • git clone https://github.com/1991513ccie-png/skills
  • brew install uchardet libzip
  • cmake -DCMAKE_INSTALL_PREFIX=/your/prefix/path ..

Requirements and caveats from upstream:

  • On a node with EasyBuild installed you can install warc2text as a module:
  • --skip-text-extraction Skip text extraction and output only html. This option is not compatible with "text" value in -f option and also requires to skip language identification.

Basic usage or getting-started notes:

  • On Debian/Ubuntu/Mint:

  • apt-get install build-essential cmake libuchardet-dev libzip-dev libboost-thread-dev libboost-regex-dev libboost-filesystem-dev libboost-log-dev libboost-iostreams-dev libboost-locale-dev libboost-program-options-dev

  • On Mac:

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/bitextor/warc2text/HEAD/README.md

Documentation

  • https://github.com/1991513ccie-png/skills