timashan/amazon-scrape-4-llm
Amazon Scrape 4 llm Purpose? Feed an LLM raw html to identify products from an ecommerce platform.These datasets contain the extracted innerTexts of all HTML nodes from different ecommerce product pages.The cleaning process significantly reduces the token size from ex: 450k -> 6k Quickstart from datasets import load_dataset data_train = load_dataset("timashan/amazon-scrape-4-llm", "phones") data_test = load_dataset("timashan/amazon-scrape-4-llm"… See the full description on the dataset page: https://huggingface.co/datasets/timashan/amazon-scrape-4-llm.
Amazon Scrape 4 llm
Purpose?
Feed an LLM raw html to identify products from an ecommerce platform.\ These datasets contain the extracted innerTexts of all HTML nodes from different ecommerce product pages.\ The cleaning process significantly reduces the token size from ex: 450k -> 6k
Quickstart
from datasets import load_dataset
data_train = load_dataset("timashan/amazon-scrape-4-llm", "phones")
data_test = load_dataset("timashan/amazon-scrape-4-llm", "laptops")JS snippet used for cleansing
const allowedTags = sanitizeHtml.defaults.allowedTags;
allowedTags.splice(allowedTags.indexOf("a"), 1);
convert(sanitizeHtml(document.body.innerHTML, { allowedTags }));