lemonilia commited on
Commit
6bbcd16
·
verified ·
1 Parent(s): 02914f1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -7
README.md CHANGED
@@ -1,8 +1,8 @@
1
- ---
2
- license: cc-by-4.0
3
- language:
4
- - en
5
- ---
6
 
7
  Here are the _mostly_ original files for some of the forums I scraped in the past, repacked as HTML strings + some metadata on a **per-thread** basis instead of a per-message basis, which should make them more convenient to handle. Unlike the other archive, they shouldn't have issues with spaces between adjacent HTML tags, as that occurred by mistake in an intermediate step where single messages were extracted from the pages. Unfortunately, I do not have the original files for most of the forums scraped in 2023; those would need to be scraped again.
8
 
@@ -13,9 +13,9 @@ Most forums were scraped page-by-page using the Firefox extension [Web Scraper](
13
  2. Retrieve the thread page HTML, look for the "next page" link, navigate to that;
14
  3. Repeat step 2 in a cyclic fashion.
15
 
16
- For the process to work properly, it was important not to scrape too many threads per run and using Firefox instead of Chrome, otherwise the process could fail (very quickly in the case of Chrome). Newer versions of Web Scraper solved some issues.
17
 
18
- After exporting the scraped pages to `.csv`, pages from the same threads were grouped together and concatenated with the string `\n<!-- [NEW PAGE STARTS BELOW] -->\n` with some Python code (involving the library Pandas), without any further processing, obtaining one row of data per thread. The records were then saved into Parquet files (`compression='zstd', compression_level=7, row_group_size=500`). It's important to make sure that the row group size is not too large, or issues can arise when loading the the files later on both with Python/pandas or in the HuggingFace dataset viewer.
19
 
20
  ## Usage notes
21
  The data is not directly usable for finetuning as-is. You will need to split the threads into messages, extract metadata, clean/convert the HTML, etc. For the NSFW forums it will be probably best to somehow avoid using usernames directly, just to be nice(r).
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ ---
6
 
7
  Here are the _mostly_ original files for some of the forums I scraped in the past, repacked as HTML strings + some metadata on a **per-thread** basis instead of a per-message basis, which should make them more convenient to handle. Unlike the other archive, they shouldn't have issues with spaces between adjacent HTML tags, as that occurred by mistake in an intermediate step where single messages were extracted from the pages. Unfortunately, I do not have the original files for most of the forums scraped in 2023; those would need to be scraped again.
8
 
 
13
  2. Retrieve the thread page HTML, look for the "next page" link, navigate to that;
14
  3. Repeat step 2 in a cyclic fashion.
15
 
16
+ For the process to work properly, it was important not to scrape too many threads per run and using Firefox instead of Chrome, otherwise the process could fail (very quickly in the case of Chrome). Newer versions of Web Scraper solved some reliability issues with Firefox and made exporting the data to `.csv` format much quicker.
17
 
18
+ Using Python (pandas) on the exported data, pages from the same threads were grouped together and concatenated with the string `\n<!-- [NEW PAGE STARTS BELOW] -->\n`, without any further processing, obtaining one row of data per thread. The records were then saved into Parquet files (`compression='zstd', compression_level=7, row_group_size=500`). It's important to make sure that the row group size is not too large, or issues can arise when loading the the files later on both with pandas or in the HuggingFace dataset viewer.
19
 
20
  ## Usage notes
21
  The data is not directly usable for finetuning as-is. You will need to split the threads into messages, extract metadata, clean/convert the HTML, etc. For the NSFW forums it will be probably best to somehow avoid using usernames directly, just to be nice(r).