From 524e0f6f01a72824ca212a6d552460065cb89468 Mon Sep 17 00:00:00 2001 From: Manan Date: Wed, 22 Feb 2023 20:20:54 +0530 Subject: [PATCH] fix | Chunk creation error when title not the first element in HTML --- scripts/parser/file/html_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/parser/file/html_parser.py b/scripts/parser/file/html_parser.py index 12c01aef..53d7492f 100644 --- a/scripts/parser/file/html_parser.py +++ b/scripts/parser/file/html_parser.py @@ -61,7 +61,7 @@ class HTMLParser(BaseParser): # Each Chunk can be thought of as an individual set of data, which can be sent to the model # Where Each Title is grouped together with the data under it - Chunks = list(list()) + Chunks = [[]] final_chunks = list(list()) for i,isd_el in enumerate(isd):