Datasets:
|
Download README.md from MaojieXu/WebPromptFilter-Prepared-HTML: direct link, hf CLI and curl.
- Browser
- Download file 2.62 kB
-
https://huggingface.co/datasets/MaojieXu/WebPromptFilter-Prepared-HTML/resolve/main/README.md
- Command line
-
hf download hf://datasets/MaojieXu/WebPromptFilter-Prepared-HTML/README.md
-
curl -L -o README.md https://huggingface.co/datasets/MaojieXu/WebPromptFilter-Prepared-HTML/resolve/main/README.md
2.62 kB
| license: cc-by-4.0 | |
| language: | |
| - multilingual | |
| task_categories: | |
| - token-classification | |
| size_categories: | |
| - 100K<n<1M | |
| pretty_name: WebPromptFilter Prepared HTML | |
| # WebPromptFilter Prepared HTML | |
| This dataset contains the prepared HTML chunks used to train and internally evaluate [WebPromptFilter](https://github.com/MaojieXu/WebPromptFilter). It is derived from the training partition of [BrowseSafe++](https://huggingface.co/datasets/perplexity-ai/browsesafe-plus-plus) by Yuetian Chen and colleagues, distributed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). The source data was transformed into labeled HTML fragments and token-limited chunks, with pair-level train/test separation. Consult the [original dataset documentation](https://browsesafe.perplexity.ai/about/) for provenance, attribution, citation and limitations. | |
| The `test` split here is an internal split of the original training partition. It is not the official BrowseSafe++ test split. No official test inputs are included. | |
| | File | Content | Chunks or pairs | | |
| | --- | --- | ---: | | |
| | `train.parquet` | Training chunks | 675,375 chunks from 26,550 pairs | | |
| | `test.parquet` | Internal evaluation chunks | 76,522 chunks from 2,950 pairs | | |
| | `selected_pairs.parquet` | Pair-level selection and split manifest | 29,500 pairs | | |
| | `summary.json` | Preparation metadata with local paths removed | — | | |
| Chunks contain task text, HTML content, fragment mappings and automatically generated labels; they are not independently verified ground truth. Preparation uses the UltraBERT tokenizer at revision `545ac9d9c7aece444f014ada5a1e9818132b4d35`, with a maximum input size of 4,096 tokens, 512-token fragments and up to 512 tokens of overlap. See the project's training documentation for the preparation and label construction procedure. The model is published separately at [MaojieXu/WebPromptFilter-UltraBERT-150M-NF4](https://huggingface.co/MaojieXu/WebPromptFilter-UltraBERT-150M-NF4). | |
| Download this repository into `data/processed/prepared_html_full` to use it with the training defaults. The evaluation script additionally requires the original BrowseSafe++ training-partition metadata, which is not included here. | |
| The dataset contains real prompt-injection text. Treat page content as untrusted input and use the examples only in authorized testing. It is not a representative sample of all deployment environments, languages, or adaptive attacks. | |
| Source citation: Chen et al., [BrowseSafe++: Benchmarking Prompt Injection Detection Across Web Contexts, Languages, and Browser Views](https://arxiv.org/abs/2610.17457), 2026. | |