Improvement[Community] Improve api doc of BeautifulSoupTransformer (#26423)

- Add missing args

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
ZhangShenao
2024-09-18 06:00:07 +08:00
committed by GitHub
parent e2245fac82
commit c3b3f46cb8

View File

@@ -132,6 +132,7 @@ class BeautifulSoupTransformer(BaseDocumentTransformer):
Args:
html_content: The original HTML content string.
tags: A list of tags to be extracted from the HTML.
remove_comments: If set to True, the comments will be removed.
Returns:
A string combining the content of the extracted tags.
@@ -184,6 +185,7 @@ def get_navigable_strings(
Args:
element: A BeautifulSoup element.
remove_comments: If set to True, the comments will be removed.
Returns:
A generator of strings.