Skip to content

Commit fe4adac

Browse files
committed
feat: use new spec to represent title and paragraph
1 parent b7ebde3 commit fe4adac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

llm_web_kit/extractor/html/recognizer/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def to_content_list_node(self, base_url: str, parsed_content: HtmlElement, raw_h
9393
el = parsed_content
9494
node = {
9595
'type': DocElementType.PARAGRAPH,
96-
'raw_content': raw_html_segment,
96+
# 'raw_content': raw_html_segment,
9797
'content': json.loads(el.text),
9898
}
9999
return node

llm_web_kit/extractor/html/recognizer/title.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def to_content_list_node(self, base_url: str, parsed_content: HtmlElement, raw_h
3636
return None
3737
cctitle_content_node = {
3838
'type': DocElementType.TITLE,
39-
'raw_content': raw_html_segment,
39+
# 'raw_content': raw_html_segment,
4040
'content': {
4141
'title_content': text,
4242
'level': level

0 commit comments

Comments
 (0)