url
stringlengths 15
2.35k
| html
stringlengths 26.1k
3.39M
| markdown
stringlengths 925
158k
| simple_markdown
stringlengths 863
166k
| length
int64 60k
100k
|
---|---|---|---|---|
https://blog.csdn.net/weixin_41667051/article/details/86488115 | "<html lang=\"zh-CN\"><head>\n <meta charset=\"utf-8\">\n <link rel=\"canonical\" href=\"https(...TRUNCATED) | "三极管电路符号和工作原理分析\\_npn型三极管电路符号-CSDN博客\n==============(...TRUNCATED) | "[![](https://img-home.csdnimg.cn/images/20201124032511.png)](https://www.csdn.net/)\n\n * [ 博客(...TRUNCATED) | 99,145 |
https://myvilla.vn/villa-ho-tram-myvilla-l4-beachfront/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA HỒ TRÀM - MYVILLA L4 BEACHFRONT - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 78,540 |
https://www.khmsyog.com/ | "<html lang=\"en-US\" prefix=\"og: https://ogp.me/ns#\" class=\"js yes-js js_active js\"><head><scri(...TRUNCATED) | "Printed Mylar Bags | Custom Designer Mylar Bag | KHMSYOG\n===============\n \n\n[Skip to (...TRUNCATED) | "Skip to content\n\n\n\n\n * **Holiday From 2/9-2/15, Customized orders can only be start producti(...TRUNCATED) | 87,847 |
https://myvilla.vn/villa-ho-tram-myvilla-s47-sanctuary/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA HỒ TRÀM - MYVILLA S47 SANCTUARY - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 77,947 |
https://myvilla.vn/villa-vung-tau-myvilla-c2-5-luxury/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA VŨNG TÀU - MYVILLA C2.5 LUXURY - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 79,279 |
https://myvilla.vn/villa-vung-tau-myvilla-b2-46/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA VŨNG TÀU - MYVILLA B2.46 - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 81,036 |
https://main-eaaci.quanti.cz/ | "<html lang=\"en-GB\"><head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"wi(...TRUNCATED) | "Home - European Association of Allergy & Immunology\n===============\n (...TRUNCATED) | "[ ![EAACI logo](https://main-eaaci.quanti.cz/wp-content/uploads/2022/07/EAACI-logo-horizontal.svg) (...TRUNCATED) | 64,953 |
https://myvilla.vn/villa-flc-sam-son-myvilla-16/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA FLC SẦM SƠN - MYVILLA 16 - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 74,723 |
https://myvilla.vn/villa-flc-sam-son-myvilla-song-lap/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA FLC SẦM SƠN - MYVILLA SONG LẬP - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 73,675 |
https://myvilla.vn/villa-flc-sam-son-myvilla-santorini/ | "<html lang=\"vi\" prefix=\"og: https://ogp.me/ns#\" class=\"js\"><head>\n\t<meta charset=\"UTF-8\">(...TRUNCATED) | "VILLA FLC SẦM SƠN - MYVILLA CENTER - MY VILLA\n===============\n (...TRUNCATED) | "Chuyển đến nội dung\n\n[ ![MY VILLA](https://myvilla.vn/wp-content/uploads/2024/04/logo-myvi(...TRUNCATED) | 74,603 |
End of preview. Expand
in Dataset Viewer.
HTML2Markdown Training Data Builder
- Download the logs from the jina-reader via
gsutil
:
gsutil -m cp -r \
"gs://reader-6b7dc.appspot.com/crunched-pages/r7" \
/path/to/r7-raw
- Parse the logs and build the training data:
python datasets/parse_dataset.py /path/to/r7-raw /path/to/target_data
It is recommended to use the jina
to build the dataset parallelly:
pip install -U jina
python datasets/parallel_parse_dataset.py \
/path/to/r7-raw \
/path/to/outputs \
--num-workers 32 \
--batch-size 256
- Then, you can push the data to huggingface datasets:
huggingface-cli login
huggingface-cli dataset create jinaai/html2markdown /path/to/target_data
Filtered Data for Training
JINA_MP_START_METHOD=spawn \
CUDA_VISIBLE_DEVICES=0,1,2,3,4 \
python datasets/parallel_filter_by_ppl.py \
jinaai/jina-reader-html-v2 \
xxsmall \
--sample-size 1000 \
--num-workers 3
Note that
- the
jinaai/jina-reader-html-v2
is the dataset name on huggingface datasets. - the
xxsmall
is the config name in thejina-reader-html
config file. - the
--sample-size
is the number of samples to be filtered. - the
--num-workers
is the number of workers to be used in the filtering process.
You can refer to here for more details about how the jina use multiple GPUs with replicas.
- Downloads last month
- 157